diff --git a/noxfile.py b/noxfile.py index 0e3edfa..a38a4cc 100644 --- a/noxfile.py +++ b/noxfile.py @@ -10,6 +10,7 @@ By default, `uv run nox` runs the sessions that assure code quality: Further sessions run on demand with `uv run nox -s `: +- "test-with-x.y": Run the test suite with non-main Python versions - "docs": Build the documentation with `sphinx` - "venv": Set up the local develop environment in ".venv" - "deps-audit": Check dependencies for known vulnerabilities @@ -359,6 +360,17 @@ def test_types(session: nox.Session) -> None: session.run("pytest", *(session.posargs or (TESTS_LOCATION,))) +# This is a separate session on purpose +# => The "test" session keeps its name and does not become "test-{MAIN_PYTHON}" +@nox.session( + name="test-with", + python=[py for py in SUPPORTED_PYTHONS if py != MAIN_PYTHON], +) +def test_code_with_non_main_python(session: nox.Session) -> None: + """Run the test suite with non-main Python versions.""" + test_code(session) + + @nox.session(name="docs", python=MAIN_PYTHON) def build_docs(session: nox.Session) -> None: """Build the documentation with `sphinx`. diff --git a/pyproject.toml b/pyproject.toml index 63994f8..9ca5226 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -30,6 +30,8 @@ classifiers = [ # loaded by `nox`, our task runner, and made available # for testing in isolated environments "Programming Language :: Python :: 3.13", + "Programming Language :: Python :: 3.14", + "Programming Language :: Python :: 3.15", ] requires-python = ">=3.13,<4.0"