From c56fe3e3fcf5e9bc22916a8c5ea08401395ce046 Mon Sep 17 00:00:00 2001 From: Henry Schreiner Date: Tue, 21 May 2024 23:26:36 -0400 Subject: [PATCH] chore: test on 3.13 (#48) * ci: manually enter Python Signed-off-by: Henry Schreiner * chore: add 3.13 classifier Signed-off-by: Henry Schreiner --------- Signed-off-by: Henry Schreiner --- .github/workflows/ci.yml | 23 +++++++++++++++++++++-- noxfile.py | 4 +--- pyproject.toml | 1 + 3 files changed, 23 insertions(+), 5 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 82110b2..fd015fc 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -35,6 +35,25 @@ jobs: - uses: wntrblm/nox@2024.04.15 with: - python-versions: "3.7, 3.8, 3.9, 3.10, 3.11, 3.12" + python-versions: "3.7, 3.8, 3.9, 3.10, 3.11, 3.12, 3.13" - - run: nox -s tests + - name: Test Python 3.7 + run: nox -s tests -P 3.7 + + - name: Test Python 3.8 + run: nox -s tests -P 3.8 + + - name: Test Python 3.9 + run: nox -s tests -P 3.9 + + - name: Test Python 3.10 + run: nox -s tests -P 3.10 + + - name: Test Python 3.11 + run: nox -s tests -P 3.11 + + - name: Test Python 3.12 + run: nox -s tests -P 3.13 + + - name: Test Python 3.13 + run: nox -s tests -P 3.13 diff --git a/noxfile.py b/noxfile.py index d20a802..5f68e66 100644 --- a/noxfile.py +++ b/noxfile.py @@ -7,8 +7,6 @@ nox.options.sessions = ["lint", "tests"] nox.options.default_venv_backend = "uv|virtualenv" -ALL_PYTHONS = ["3.7", "3.8", "3.9", "3.10", "3.11", "3.12"] - @nox.session def lint(session: nox.Session) -> None: """ @@ -57,7 +55,7 @@ def update(session: nox.Session) -> None: init_file.write_text(txt_new, encoding="utf_8") -@nox.session(python=ALL_PYTHONS) +@nox.session def tests(session): """ Run the unit and regular tests. diff --git a/pyproject.toml b/pyproject.toml index 39dd70f..b55d692 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -33,6 +33,7 @@ classifiers = [ "Programming Language :: Python :: 3.10", "Programming Language :: Python :: 3.11", "Programming Language :: Python :: 3.12", + "Programming Language :: Python :: 3.13", "Topic :: Documentation", "Topic :: Utilities", ]