-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathtox.ini
41 lines (37 loc) · 1.05 KB
/
tox.ini
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
33
34
35
36
37
38
39
40
41
[tox]
envlist = {py37,py38,py39,py310,py311}-{base,psutil}
[gh-actions]
# Allows us to use tox configuration to manage our tests, but still run on
# github actions in the GHA matrix job matrix with GHA-managed python.
# Requires tox-gh-actions package to run.
python =
3.6: py36
3.7: py37
3.8: py38
3.9: py39
3.10: py310
3.11: py311
3.12: py312
[testenv]
commands =
pytest --log-level=DEBUG \
--cov=taskgraph \
--cov-report=term \
--cov-report=xml \
--cov-report=html \
--junitxml={toxinidir}/testresults.xml {toxinidir}/tests
changedir=
{envtmpdir}
# If tox-conda is installed (https://github.com/tox-dev/tox-conda),
# use conda-forge python builds for the environments.
conda_channels=
conda-forge
# Only install psutil to the environments where we're testing psutil.
# "psutil: psutil" is an example of tox's generative environment definition
# and will match all environments containing the string "psutil"
deps =
setuptools_scm
pytest
pytest-cov
rstcheck
psutil: psutil