-
Notifications
You must be signed in to change notification settings - Fork 1
/
tox.ini
54 lines (49 loc) · 1.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
[tox]
requires =
tox>=4.2
env_list =
report
clean
py{312, 311, 310, 39}-pdm{213, 212, 211, 210, 29, 28, 27}
[testenv]
set_env =
py{39,310,311,312}-pdm{27,28,29,210,211,212,213}: COVERAGE_FILE = .coverage.{envname}
commands =
pytest --cov --cov-append --cov-report=term-missing {posargs:-vv} --cov-config=pyproject.toml
depends =
report: py{312, 311, 310, 39}-pdm{213, 212, 211, 210, 29, 28, 27}
py{312, 311, 310, 39}-pdm{213, 212, 211, 210, 29, 28, 27}: clean
[testenv:report]
skip_install = true
commands =
coverage combine
coverage report
coverage html
coverage xml
groups =
testtox
[testenv:clean]
skip_install = true
commands =
coverage erase
groups =
testtox
[testenv:py{39,310,311,312}-pdm{27,28,29,210,211,212,213}]
package = editable
deps =
pdm210: pdm<2.11,>=2.10
pdm211: pdm<2.12,>=2.11
pdm212: pdm<2.13,>=2.12
pdm213: pdm<2.14,>=2.13.2
pdm27: pdm<2.8,>=2.7
pdm28: pdm<2.9,>=2.8
pdm29: pdm<2.10,>=2.9
groups =
testtox
[gh]
python =
3.9= py39-pdm{27,28,29,210,211,212,213}, report, clean
3.10= py310-pdm{27,28,29,210,211,212,213}, report, clean
3.11= py311-pdm{27,28,29,210,211,212,213}, report, clean
3.12= py312-pdm{27,28,29,210,211,212,213}, report, clean
fail_on_no_env = True