-
Notifications
You must be signed in to change notification settings - Fork 12
/
tox.ini
49 lines (42 loc) · 1.01 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
42
43
44
45
46
47
48
49
# For more information about tox, see https://tox.readthedocs.io/en/latest/
[tox]
envlist =
# Pytest <6.2.5 not supported on Python >=3.10
py{36,37,38,39}-pytest{3,4,5}-coverage
py{35,36,37,38,39,310,311,312,3}-pytest{6,}-coverage
# Coverage is slow in pypy
pypy3-pytest{6,}
flake8
[testenv]
deps =
pytest3: pytest >=3, <4
pytest4: pytest >=4, <5
pytest5: pytest >=5, <6
pytest6: pytest >=6, <7
pytest: pytest
coverage: coverage
setenv =
coverage: TEST_RUNNER=coverage run -m pytest
commands =
coverage: coverage erase
{env:TEST_RUNNER:pytest} {posargs:tests}
coverage: coverage report
coverage: coverage xml -o coverage-reports/{env:TOX_ENV_NAME}.xml
[testenv:flake8]
skip_install = true
deps = flake8
commands = flake8 pytest_snapshot setup.py tests
[flake8]
max-line-length = 120
[gh-actions]
python =
3.5: py35
3.6: py36
3.7: py37
3.8: py38
3.9: py39
3.10: py310
3.11: py311
3.12: py312, flake8
3: py3
pypy-3.10: pypy3