-
-
Notifications
You must be signed in to change notification settings - Fork 68
Expand file tree
/
Copy pathtox.ini
More file actions
32 lines (31 loc) · 1.58 KB
/
Copy pathtox.ini
File metadata and controls
32 lines (31 loc) · 1.58 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
[tox]
envlist = py39, py310, py311, py312, py313, py314
skip_missing_interpreters = true
# this repo is not a Python package - it is a collection of check plugin scripts.
# tell tox not to build/install an sdist from the repo root, otherwise setuptools
# auto-discovery trips over the top-level lib/, site/ and assets/ dirs.
no_package = true
[testenv]
# A test that cannot work on a GitHub-hosted runner (no inbound ICMP, for example)
# skips itself there, and tox does not pass this variable on by default.
pass_env =
GITHUB_ACTIONS
# Each environment installs the hash-pinned lockfile of its Python version, so
# the tests run against exactly the dependencies a source install ships with,
# and every runtime dependency is there: a plugin whose dependency was missing
# failed or skipped its tests without anyone noticing. The library itself is
# imported from the `lib` symlink next to each plugin, which points at the lib
# repo checked out beside this one, so the linuxfabrik-lib the lockfile installs
# stays unused.
deps =
py39: -r lockfiles/py39/requirements.txt
py310: -r lockfiles/py310/requirements.txt
py311: -r lockfiles/py311/requirements.txt
py312: -r lockfiles/py312/requirements.txt
py313: -r lockfiles/py313/requirements.txt
py314: -r lockfiles/py314/requirements.txt
commands =
# `--no-container` keeps tox focused on fast pure-Python unit tests so
# the multi-Python matrix actually completes. Run `tools/run-container-tests`
# separately for the container-backed integration suite (podman required).
python tools/run-unit-tests --no-container {posargs}