Project: pygitweb

f84f28d """Multi-version test matrix via nox + uv.
Task wrappers in ``scripts/pytest_version.py`` (and mise/pgt ``pytest-3-*``)
invoke ``nox -s tests-<version>``. Run the full matrix with ``uv run nox``.
"""
from __future__ import annotations
from nox import Session, options
from nox_uv import session
PYTHON_VERSIONS = ["3.12", "3.13", "3.14", "3.15"]
options.default_venv_backend = "uv"
options.sessions = ["tests"]
@session(
python=PYTHON_VERSIONS,
uv_groups=["dev"],
uv_all_packages=True,
uv_no_install_project=True,
)
def tests(s: Session) -> None:
"""Run the default pytest suite on one Python version."""
s.run("pytest", ".", *s.posargs)