From 141eb6f09e515f016547df6f9a297936267e25fc Mon Sep 17 00:00:00 2001 From: Mathew Sir Guest the best Date: Sat, 30 May 2026 22:36:41 -0600 Subject: [PATCH] build: add nox matrix runner for the Python version smoke suite Co-Authored-By: Claude Opus 4.8 (1M context) --- noxfile.py | 15 +++++++++++++++ pyproject.toml | 1 + 2 files changed, 16 insertions(+) create mode 100644 noxfile.py diff --git a/noxfile.py b/noxfile.py new file mode 100644 index 0000000..f55f28f --- /dev/null +++ b/noxfile.py @@ -0,0 +1,15 @@ +import nox + +nox.options.default_venv_backend = "uv" +nox.options.reuse_existing_virtualenvs = False + +# Newest first. 3.8 is a stretch goal (see the importlib_resources backport). +PYTHON_VERSIONS = ["3.13", "3.12", "3.11", "3.10", "3.9", "3.8"] + + +@nox.session(python=PYTHON_VERSIONS) +def tests(session): + """Install the project + pytest and run the smoke suite on each interpreter.""" + session.install(".") + session.install("pytest") + session.run("pytest", "-v") diff --git a/pyproject.toml b/pyproject.toml index de55e71..94c539b 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -34,6 +34,7 @@ pre-commit = "*" isort = "*" flake8 = "*" pytest = "*" +nox = "*" #Sphinx = "^5.3.0" #sphinx-rtd-theme = "^1.3.0"