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]
minversion = 3
envlist =
cover-{clean,report}
py{38,39,310,311,312}{,-lektor33,-mistune0}
lint
labels =
cover = py311{,-lektor33,-mistune0}, cover-{clean,report}
[gh-actions]
python =
3.8: py38, cover
3.9: py39, cover
3.10: py310, cover
3.11: py311, cover
3.12: py312, cover, lint
[testenv]
deps =
pytest
pytest-cov
!lektor33: lektor>=3.4.0a1
lektor33: lektor<3.4
mistune0: mistune<1
commands =
coverage run -m pytest {posargs: tests}
depends =
py{38,39,310,311,312}: cover-clean
cover-report: py{38,39,310,311,312}{,-lektor33,-mistune0}
# workaround for pip cache contention under `tox p` with older pips
download = true
[testenv:cover-clean]
deps = coverage[toml]
skip_install = true
commands = coverage erase
[testenv:cover-report]
deps = coverage[toml]
skip_install = true
commands =
-coverage combine --append
coverage html
coverage report --fail-under 100
[testenv:lint]
skip_install = True
deps =
build
twine
commands =
python -m build -s --outdir {envtmpdir}/dist {toxinidir}
twine check {envtmpdir}/dist/*
|