-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtox.ini
More file actions
77 lines (68 loc) · 2.17 KB
/
tox.ini
File metadata and controls
77 lines (68 loc) · 2.17 KB
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
[tox]
envlist = {py37, py38, py39}-{validation_test}
skip_missing_interpreters = true
[testenv]
description =
validation_test: Validation testing, runs all except those marked slow (can pass --runslow), can pass limited args to pytest
deps =
validation_test: pytest
commands =
validation_test: pytest test/validation {posargs}
[testenv:{py37, py38, py39}-test]
description = Runs all tests except those marked slow (can pass --runslow)
deps = pytest
commands = pytest {posargs}
[coverage:run]
source = serums
[coverage:paths]
source =
src/
.tox/**/lib/python*/site-packages/
[testenv:coverage_report]
description = Run all the tests and generate a coverage summary report
deps =
pytest
pytest-cov
commands =
coverage run -m pytest --runslow --runxfail --no-cov-on-fail
coverage report
coverage html -d docs/build/html/reports/coverage --title="SERMU's Test Coverage"
coverage xml -o docs/build/html/reports/coverage/coverage.xml
[testenv:test_report]
description = Run all the tests and generate a html summary report
deps =
pytest
pytest-html
commands =
pytest --runslow --runxfail --junit-xml=docs/build/html/reports/junit/junit.xml --html=docs/build/html/reports/junit/junit.html
[testenv:docs_html]
description = Build the html documentation with sphinx, can pass -- -Dversion=VERSION (ex: tox -e docs_pdf -- -Dversion=1.0.0)
deps =
sphinx >= 1.7.5
sphinx_rtd_theme
sphinxcontrib-bibtex
sphinxcontrib-svg2pdfconverter
sphinx-copybutton
sphinx_sitemap
commands =
sphinx-build -b html {posargs} docs/source/ docs/build/html/
[testenv:docs_pdf]
description = Build the PDF documentation with sphinx, can pass -- -Dversion=VERSION (ex: tox -e docs_pdf -- -Dversion=1.0.0)
deps =
sphinx >= 1.7.5
sphinx_rtd_theme
sphinxcontrib-bibtex
sphinxcontrib-svg2pdfconverter
sphinx-copybutton
sphinx_sitemap
allowlist_externals =
make
commands =
sphinx-build -b latex {posargs} docs/source/ docs/build/pdf/
make -C docs/build/pdf
[testenv:clean_docs]
description = Cleans the documentation build folder (from sphinx)
deps =
sphinx >= 1.7.5
commands =
sphinx-build -M clean docs/source/ docs/build/