-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
59 lines (53 loc) · 1.13 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
[tox]
minversion = 4
envlist =
{py38,py39,py310,py311,py312}{,-lektor_pre}
cover-{clean,report}
lint
docs
isolated_build = true
[gh-actions]
python =
3.8: py38
3.9: py39
3.10: py310
3.11: py311
3.12: py312, lint, docs
[testenv]
deps =
coverage[toml]
pytest
pytest-mock
lektor
lektor_pre: lektor>=3.4a0
commands =
coverage run -m pytest {posargs: tests -ra}
depends =
{py38,py39,py310,py311,py312}: cover-clean
cover-report: {py38,py39,py310,py311,py312}{,-lektor_pre}
[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 --show-missing
[testenv:lint]
skip_install = True
deps =
build
twine
commands =
python -m build --outdir {envtmpdir}/dist {toxinidir}
twine check {envtmpdir}/dist/*
[testenv:docs]
skip_install = True
recreate = True
deps =
-r {toxinidir}/docs/requirements.txt
commands =
sphinx-build -n -b html {toxinidir}/docs {envtmpdir}/html_docs