forked from schemathesis/schemathesis
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtox.ini
50 lines (45 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
50
[tox]
isolated_build = true
envlist =
py{38,39,310,311,312},
pytest53,
pytest6,
coverage-report
[gh-actions]
python =
3.8: py38
3.9: py39
3.10: py310
3.11: py311
3.12: py312
[testenv]
extras =
tests
cov
setenv =
COVERAGE_PROCESS_START={toxinidir}/pyproject.toml
COLUMNS=80
commands =
coverage run -m pytest {posargs:-n auto --durations=10 -vv} 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" "syrupy<4"
[testenv:pytest6]
commands_pre =
pip install "pytest<7" "pytest-subtests<0.7.0" "pytest-asyncio<0.21.0" "syrupy<4"
[testenv:coverage-report]
description = Report coverage over all measured test runs.
basepython = python3.11
deps = coverage[toml]>=5.3
skip_install = true
depends = py{38,39,310,311}
commands =
coverage combine
coverage report
coverage xml -i {posargs:}