Skip to content

Commit

Permalink
Add support to Python 3.12 (#195)
Browse files Browse the repository at this point in the history
* Include changes in bumping the docker python api version `5.0.3` -> `6.1.2`.
* Include updates on the versions of test dependencies and GHA versions.
  • Loading branch information
danielhollas authored Dec 12, 2023
1 parent 1eedb9d commit 1aead4b
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 21 deletions.
21 changes: 10 additions & 11 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,12 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Set up Python 3.10
uses: actions/setup-python@v2
uses: actions/setup-python@v4
with:
python-version: '3.10'
- uses: pre-commit/action@v2.0.0
- uses: pre-commit/action@v3.0.0

test-package:

Expand All @@ -31,19 +31,19 @@ jobs:
strategy:
fail-fast: false
matrix:
python-version: ['3.8', '3.9', '3.10', '3.11']
python-version: ['3.8', '3.9', '3.10', '3.11', '3.12']
default-image:
- '' # use the application default
- aiidalab/aiidalab-docker-stack:latest

steps:

- uses: actions/checkout@v2
- uses: actions/checkout@v4
with:
fetch-depth: 0
submodules: true

- uses: actions/setup-python@v2
- uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}

Expand All @@ -59,7 +59,7 @@ jobs:
coverage xml
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v2
uses: codecov/codecov-action@v3
with:
flags: py-${{ matrix.python-version }}

Expand All @@ -73,22 +73,21 @@ jobs:
strategy:
fail-fast: false
matrix:
python-version: ['3.8', '3.9', '3.10', '3.11']
python-version: ['3.8', '3.9', '3.10', '3.11', '3.12']

steps:

- uses: actions/checkout@v2
- uses: actions/checkout@v4
with:
fetch-depth: 0
submodules: true

- uses: actions/setup-python@v2
- uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}

- name: Install with pipx
run: |
which python
python -m pip install pipx
pipx install ${{ github.workspace }}
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@ jobs:

steps:

- uses: actions/checkout@v2
- uses: actions/checkout@v4

- name: Set up Python 3.10
uses: actions/setup-python@v2
uses: actions/setup-python@v4
with:
python-version: '3.10'

Expand Down
16 changes: 8 additions & 8 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ packages = find:
install_requires =
click==8.1
click-spinner==0.1.10
docker==5.0.3
docker==6.1.2
packaging==21.3
python-dotenv==0.19.1
requests==2.26.0
Expand All @@ -37,15 +37,15 @@ console_scripts =

[options.extras_require]
dev =
bumpver==2021.1114
dunamai==1.7.0
bumpver==2023.1129
dunamai==1.19.0
pre_commit =
pre-commit==2.15.0
pre-commit==3.5.0
tests =
pytest==7.2.1
pytest-asyncio==0.20.3
pytest-cov==4.0.0
responses==0.22.0
pytest~=7.4.3
pytest-asyncio~=0.21.1
pytest-cov~=4.1.0
responses~=0.23.1

[flake8]
ignore =
Expand Down

0 comments on commit 1aead4b

Please sign in to comment.