-
Notifications
You must be signed in to change notification settings - Fork 4
/
tox.ini
81 lines (75 loc) · 2.82 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
[tox]
requires =
tox>=4.2
env_list =
clean
report
py{313, 312, 311, 310, 39}-pdm{220, 219, 218, 217, 216, 215, 214, 213, 212, 211, 210, 29, 28, 27, HEAD}
py{313, 312, 311, 310, 39}-poetry{18, 17, 16, HEAD}
[testenv]
set_env =
py{39,310,311,312,313}-pdm{27,28,29,210,211,212,213,214,215,216,217,218,219,220, HEAD}: COVERAGE_FILE = .coverage.{envname}
py{39,310,311,312,313}-poetry{16, 17, 18, HEAD}: COVERAGE_FILE = .coverage.{envname}
commands =
pytest --cov --cov-append --cov-report=term-missing {posargs:-vv} --cov-config=pyproject.toml
allowlist_externals =
coverage
pdm
pytest
depends =
report: py{313, 312, 311, 310, 39}-pdm{220, 219, 218, 217, 216, 215, 214, 213, 212, 211, 210, 29, 28, 27, HEAD}
report: py{313, 312, 311, 310, 39}-poetry{18, 17, 16, HEAD}
py{313, 312, 311, 310, 39}-pdm{220, 219, 218, 217, 216, 215, 214, 213, 212, 211, 210, 29, 28, 27, HEAD}: clean
py{313, 312, 311, 310, 39}-poetry{18, 17, 16, HEAD}: clean
[testenv:clean]
skip_install = true
commands =
coverage erase
pdm export --dev --group testtox -o requirements-tox.txt --no-hashes
groups =
testtox
[testenv:report]
skip_install = true
deps =
-r requirements-tox.txt
commands =
coverage combine
coverage report
coverage html
coverage xml
[testenv:py{39,310,311,312,313}-pdm{27,28,29,210,211,212,213,214,215,216,217,218,219,HEAD}]
package = editable
deps =
-r requirements-tox.txt
py39-pdm27: importlib-metadata<8
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
pdm214: pdm<2.15,>=2.14
pdm215: pdm<2.16,>=2.15
pdm216: pdm<2.17,>=2.16
pdm217: pdm<2.18,>=2.17
pdm218: pdm<2.19,>=2.18
pdm219: pdm<2.20,>=2.19
pdm220: pdm<2.21,>=2.20
pdm27: pdm<2.8,>=2.7
pdm28: pdm<2.9,>=2.8
pdm29: pdm<2.10,>=2.9
pdmHEAD: pdm@ git+https://github.com/pdm-project/pdm.git
[testenv:py{313,312, 311, 310, 39}-poetry{16, 17, 18, HEAD}]
package = editable
deps =
-r requirements-tox.txt
poetry16: poetry<1.7,>=1.6
poetry17: poetry<1.8,>=1.7
poetry18: poetry<1.9,>=1.8
poetryHEAD: poetry@ git+https://github.com/python-poetry/poetry.git
[gh]
python =
3.9= py39-pdm{27,28,29,210,211,212,213,214,215,216,217,218,219,220,HEAD},py39-poetry{16, 17, 18, HEAD}, report, clean
3.10= py310-pdm{27,28,29,210,211,212,213,214,215,216,217,218,219,220,HEAD}, py310-poetry{16, 17, 18, HEAD}, report, clean
3.11= py311-pdm{27,28,29,210,211,212,213,214,215,216,217,218,219,220,HEAD}, py311-poetry{16, 17, 18, HEAD}, report, clean
3.12= py312-pdm{27,28,29,210,211,212,213,214,215,216,217,218,219,220,HEAD}, py312-poetry{16, 17, 18, HEAD}, report, clean
3.13= py313-pdm{27,28,29,210,211,212,213,214,215,216,217,218,219,220,HEAD}, py313-poetry{16, 17, 18, HEAD}, report, clean
fail_on_no_env = True