-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathtox.ini
53 lines (48 loc) · 1.03 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
[tox]
env_list = py27,py3{5,6,7,8,9,10,11,12,13,14},py3{13t,14t}
labels =
main = py313
[testenv:py313]
description = Main environment
deps =
doctestcase
mypy
pytest
pytest-cov
pytest-sugar
typing-extensions
unittest-expander
commands =
python -m mypy --exclude docsubfile.py .
pytest -x \
--cov=caseutil \
--cov-branch \
--cov-report=term \
--cov-report=html:.tmp/htmlcov \
--cov-report=xml:.tmp/coverage.xml \
--junitxml=.tmp/junit.xml \
tests
[testenv:py3{9,10,11,12,14,13t,14t}]
description = Python versions supported by all tests (excluding py313)
deps =
doctestcase
mypy
pytest
typing-extensions
unittest-expander
commands =
python -m mypy --exclude docsubfile.py .
pytest -x tests
[testenv:py27,py3{5,6,7,8}]
description = Python versions not supported by mypy
deps =
doctestcase
unittest-expander
allowlist_externals = sh
commands =
sh -c "python -m unittest discover --failfast -s tests -p 'test_*.py'"
# coverage
[coverage:run]
branch = true
[coverage:report]
precision = 1