-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathtox.ini
More file actions
37 lines (31 loc) · 786 Bytes
/
tox.ini
File metadata and controls
37 lines (31 loc) · 786 Bytes
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
# content of: tox.ini , put in same dir as setup.py
[tox]
envlist = py310, py312
[gh-actions]
python =
3.10: py310
3.12: py312
[testenv]
# dependencies for tests (include dependencies of the package itself)
deps =
pytest
texttable
matplotlib
# Get error for: pytest -m "not metacentrum"
# But it seems that quoting works fin on tox side
# since: python -c "import sys; print(sys.argv)" -m "not metacentrum"
# works fine.
# However pytest works also fine when called from python.
# Finally calling pytest through python works.
setenv =
MPLBACKEND=Qt5Agg
passenv = MPLBACKEND
commands =
#pytest {posargs}
pytest -m "not pbs" {posargs}
[testenv:coverage-report]
deps = coverage
skip_install = true
commands =
coverage combine
coverage report