forked from schemathesis/schemathesis
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
53 lines (47 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
42
43
44
45
46
47
48
49
50
51
52
53
[tox]
isolated_build = true
envlist =
py{37,38,39,310,311},
pytest53,
pytest6,
hypothesis648,
coverage-report
[gh-actions]
python =
3.7: py37
3.8: py38
3.9: py39
3.10: py310
3.11: py311
[testenv]
extras =
tests
cov
setenv = COVERAGE_PROCESS_START={toxinidir}/pyproject.toml
commands =
coverage run -m pytest {posargs:-n auto --durations=10} test
coverage combine --keep
coverage report
coverage xml -i
allowlist_externals =
coverage
[testenv:pytest53]
basepython = python3.9
commands_pre =
pip install "pytest<5.4" "pytest-asyncio<0.11.0" "pytest-subtests<0.6.0" "pytest-xdist<2"
[testenv:pytest6]
commands_pre =
pip install "pytest<7" "pytest-subtests<0.7.0" "pytest-asyncio<0.21.0"
[testenv:hypothesis648]
commands_pre =
pip install "hypothesis<6.49"
[testenv:coverage-report]
description = Report coverage over all measured test runs.
basepython = python3.7
deps = coverage[toml]>=5.3
skip_install = true
depends = py{37,38,39,310,311}
commands =
coverage combine
coverage report
coverage xml -i {posargs:}