-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathtox.ini
101 lines (88 loc) · 2.27 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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
# tox (https://tox.readthedocs.io/) is a tool for running tests
# in multiple virtualenvs. This configuration file will run the
# test suite on all supported python versions. To use it, "pip install tox"
# and then run "tox" from this directory.
[tox]
envlist = py{37,38,39,310,311},empty{37,38,39,310,311},report
[gh-actions]
python =
3.7: empty37, py37
3.8: empty38, py38
3.9: empty39, py39, report
3.10: empty310, py310
3.11: empty311, py311
[testenv]
install_command = python -I -m pip install --no-cache-dir
deps =
pytest
pytest-cov
pytest-mypy
pytest-flakes
pytest-pycodestyle
pytest-recording
-rrequirements.txt
-rtest_requirements.txt
-rtest_packages.txt
commands =
pytest \
--mypy \
--pycodestyle \
--flakes \
--doctest-modules \
--doctest-ignore-import-errors \
--cov serialzy \
--cov-report= \ # supress cov report printing to console
--block-network \
{posargs}
[testenv:empty]
deps =
pytest
pytest-cov
pytest-mypy
pytest-flakes
pytest-pycodestyle
pytest-recording
-rrequirements.txt
-rtest_requirements.txt
commands =
{[testenv]commands} \
tests/empty_env \
--empty-venv-tests
# i cant find a way to not to describe all emptypy* envs like usual py* envs
[testenv:empty37]
basepython = python3.7
deps = {[testenv:empty]deps}
commands = {[testenv:empty]commands}
[testenv:empty38]
basepython = python3.8
deps = {[testenv:empty]deps}
commands = {[testenv:empty]commands}
[testenv:empty39]
basepython = python3.9
deps = {[testenv:empty]deps}
commands = {[testenv:empty]commands}
[testenv:empty310]
basepython = python3.10
deps = {[testenv:empty]deps}
commands = {[testenv:empty]commands}
[testenv:empty311]
basepython = python3.11
deps = {[testenv:empty]deps}
commands = {[testenv:empty]commands}
[testenv:report]
basepython = python3.9
depends = py39
skip_install = true
deps =
coverage-badge
commands =
coverage report
coverage-badge -o coverage.svg -f
[pytest]
filterwarnings =
ignore:.*pkg_resources.*:DeprecationWarning:^(?!serialzy)
ignore:.*np.bool8.*:DeprecationWarning:tensor.*
ignore:.*:DeprecationWarning:flatbuffers.compat
[pycodestyle]
max-line-length = 120
statistics = True