Skip to content

Commit c6a428c

Browse files
committed
Move python matrix to a global
1 parent 42d56d6 commit c6a428c

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

noxfile.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
TESTS_PATH = "tests"
1313
COVERAGE_FAIL_UNDER = 50
1414
DEFAULT_PYTHON_VERSION = "3.11"
15+
PYTHON_MATRIX = ["3.8", "3.9", "3.10", "3.11", "3.12"]
1516
VENV_PATH = "venv"
1617
REQUIREMENT_IN_FILES = [
1718
pathlib.Path("requirements/requirements.in"),
@@ -43,9 +44,7 @@
4344
]
4445

4546

46-
@nox.session(
47-
python=["3.8", "3.9", "3.10", "3.11", "3.12"],
48-
)
47+
@nox.session(python=PYTHON_MATRIX)
4948
def tests_with_coverage(session: nox.Session) -> None:
5049
"""Run unit tests with coverage saved to partial file."""
5150
print_standard_logs(session)

0 commit comments

Comments
 (0)