Skip to content

Commit

Permalink
Set minimum Python version to 3.10 and update dependencies (#128)
Browse files Browse the repository at this point in the history
  • Loading branch information
Athanaseus authored Jan 24, 2025
1 parent ab99139 commit bbd4f10
Show file tree
Hide file tree
Showing 5 changed files with 1,355 additions and 1,056 deletions.
26 changes: 20 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,18 +1,26 @@
name: Ubuntu CI

on: [push, pull_request]
on:
push:
branches:
- main
tags:
- "*"
pull_request:
schedule:
- cron: '30 2 * * 1,4' # Every Monday and Thursday @ 2h30am UTC

env:
POETRY_VERSION: 1.4.0
POETRY_VERSION: 2.0.1

jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ ubuntu-20.04, ubuntu-22.04 ]
python-version: ["3.8", "3.9", "3.10"]
os: [ ubuntu-20.04, ubuntu-22.04, ubuntu-24.04 ]
python-version: ["3.10", "3.11", "3.12"]
steps:
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
Expand All @@ -21,10 +29,13 @@ jobs:

- name: Cache Installations
id: cache-installs
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: ~/.local
key: install-${{ env.INSTALL_CACHE_HASH }}-4
key: install-${{ env.INSTALL_CACHE_HASH }}-

- name: Install latest setuptools, wheel, pip
run: python3 -m pip install -U pip setuptools wheel

- name: Install Poetry
if: steps.cache-installs.outputs.cache-hit != 'true'
Expand All @@ -42,6 +53,9 @@ jobs:
- name: Install shadems
run: poetry install --extras "testing"

- name: Check installed version command
run: poetry run shadems --version

- name: Test command
run: poetry run shadems --help

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/publish_package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on:
types: [published]

env:
POETRY_VERSION: 1.4.0
POETRY_VERSION: 2.0.1

jobs:
deploy:
Expand Down
Loading

0 comments on commit bbd4f10

Please sign in to comment.