Skip to content

Commit

Permalink
Merge pull request #219 from jodal/upgrades
Browse files Browse the repository at this point in the history
Test on Python 3.13
  • Loading branch information
jodal authored Oct 10, 2024
2 parents a2174d9 + 33cc3a4 commit c670920
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 15 deletions.
17 changes: 10 additions & 7 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,25 +27,28 @@ jobs:
- name: "Test: Python 3.12"
python: "3.12"
tox: py312
- name: "Test: Python 3.13"
python: "3.13"
tox: py313
coverage: true
- name: "Lint: mypy"
python: "3.12"
python: "3.13"
tox: mypy
- name: "Lint: pyright"
python: "3.12"
python: "3.13"
tox: pyright
- name: "Lint: ruff-format"
python: "3.12"
python: "3.13"
tox: ruff-format
- name: "Lint: ruff-lint"
python: "3.12"
python: "3.13"
tox: ruff-lint
- name: "Docs"
python: "3.12"
python: "3.13"
tox: docs

name: ${{ matrix.name }}
runs-on: ubuntu-22.04
runs-on: ubuntu-24.04

steps:
- uses: actions/checkout@v4
Expand All @@ -59,7 +62,7 @@ jobs:
key: ${{ runner.os }}-${{ matrix.python }}-${{ matrix.tox }}-pip-${{ hashFiles('pyproject.toml', 'tox.ini') }} }}
restore-keys: |
${{ runner.os }}-${{ matrix.python }}-${{ matrix.tox }}-pip-
- run: python -m pip install poetry==1.8.2 tox==4.16.0
- run: python -m pip install poetry==1.8.3 tox==4.21.2
- run: python -m tox -e ${{ matrix.tox }}
if: ${{ ! matrix.coverage }}
- run: python -m tox -e ${{ matrix.tox }} -- --cov-report=xml
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,14 @@ on:

jobs:
release:
runs-on: ubuntu-22.04
runs-on: ubuntu-24.04

steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.12"
- run: python -m pip install poetry==1.8.2 tox==4.16.0
python-version: "3.13"
- run: python -m pip install poetry==1.8.3 tox==4.21.2
- run: tox --skip-missing-interpreters true
- run: poetry build
- run: poetry publish --username=__token__ --password=${{ secrets.PYPI_TOKEN }}
6 changes: 3 additions & 3 deletions .tool-versions
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
nodejs 20.12.0
poetry 1.8.2
python 3.12 3.11 3.10 3.9 3.8
node 20.18.0
poetry 1.8.3
python 3.13 3.12 3.11 3.10 3.9 3.8
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ python = "^3.8.0"
typing-extensions = { version = "^4.0.0", python = "<3.10" }

[tool.poetry.group.dev.dependencies]
tox = "^4.16.0"
tox = "^4.21.2"

[tool.poetry.group.docs.dependencies]
sphinx = "^6.2.1"
Expand Down
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tox]
isolated_build = true
envlist = py38, py39, py310, py311, py312, docs, mypy, ruff-format, ruff-lint
envlist = py38, py39, py310, py311, py312, py313, docs, mypy, ruff-format, ruff-lint

[testenv]
allowlist_externals = poetry
Expand Down

0 comments on commit c670920

Please sign in to comment.