-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
52 lines (44 loc) · 1.1 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
[tox]
envlist = clean,py{38,39,310,311,312}
skipsdist = True
[testenv]
skip_install = True
deps =
pytest
pytest-cov
importlib_resources >= 5.10
-r requirements-dev.txt
-r requirements.txt
commands =
coverage run --data-file={temp_dir}/.coverage --rcfile=tox.ini -m pytest
depends =
py{38,39,310,311,312}: clean
sonar_report: py{38,39,310,311,312},mypy,coverage
coverage: py{38,39,310,311,312}
[testenv:mypy]
deps =
mypy
types-pyinstaller
skip_install = True
commands =
mypy package_speedwagon
[testenv:coverage]
skip_install = true
commands =
coverage combine --keep --data-file={temp_dir}/.coverage {temp_dir}
coverage html --data-file={temp_dir}/.coverage -d {temp_dir}/reports/coverage
[testenv:sonar_report]
commands =
coverage combine --keep --data-file={temp_dir}/.coverage {temp_dir}
coverage xml --data-file={temp_dir}/.coverage -o reports/coverage.xml
[coverage:run]
relative_files = True
parallel=True
branch = True
omit =
*.spec
[testenv:clean]
deps = coverage
skip_install = true
commands =
coverage erase --data-file={temp_dir}/.coverage