-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtox.ini
63 lines (59 loc) · 1.26 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
[tox]
isolated_build = true
envlist = test, doctest, build
[gh-actions]
python =
3.9: test, doctest, build
3.10: test
3.11: test
3.12: test
3.8: test
3.7: test
[testenv:build]
allowlist_externals =
uv
mkdocs
twine
extras =
test
doc
dev
commands =
uv build
mkdocs build
twine check dist/*
[testenv:test]
recreate = false
deps =
pytest ~= 6.2
pytest-cov ~= 2.12
pytest-parametrized ~= 1.3
numpy
passenv = *
setenv =
PYTHONPATH = {toxinidir}
PYTHONWARNINGS = ignore
allowlist_externals = pytest
commands =
pytest -s --doctest-modules --cov=dike --cov-append --cov-report=xml --cov-report term-missing --junit-xml pytest.xml tests
[testenv:doctest]
recreate = false
deps =
pytest ~= 6.2
pytest-cov ~= 2.12
pytest-parametrized ~= 1.3
phmdoctest ~= 1.2
numpy
httpx
passenv = *
setenv =
PYTHONPATH = {toxinidir}
PYTHONWARNINGS = ignore
allowlist_externals =
rm
mkdir
commands =
rm -rf local/doctests
mkdir -p local/doctests
python -m phmdoctest --skip '@dike.retry' --outfile local/doctests/test_README.py README.md
pytest -s --doctest-modules --cov=dike --cov-append --cov-report=xml --cov-report term-missing --junit-xml pytest.xml local/doctests