forked from aristanetworks/avd
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtox.ini
More file actions
56 lines (51 loc) · 1.23 KB
/
tox.ini
File metadata and controls
56 lines (51 loc) · 1.23 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
[tox]
env_list =
py310
py311
py312
py313
py314
coverage
report
depends =
report: coverage
[gh-actions]
python =
3.10: py310
3.11: coverage
3.12: py312
3.13: py313
3.14: py314
[testenv]
# We have multiple packages so we skip installing them and install them as editables in deps instead
# Really we should move the file now that pyavd-utils is gone
skip_install=true
deps=
# Forcing pyavd dependencies to be installed by installing pyavd from source
-epython-avd
description= Running pyavd tests
dependency_groups =
pytest
commands =
# posargs allows to run only a specific test using
# tox run -e <env> -- path/to/my/test::test
pytest {posargs}
[testenv:coverage]
description= Running coverage
dependency_groups =
pytest
coverage
commands =
coverage erase
# posargs allows to run only a specific test using
# tox run -e <env> -- path/to/my/test::test
coverage run -m pytest {posargs}
# Since we run coverage with the parallel option, it may create multiple files which should be combined before reporting.
coverage combine
[testenv:report]
description= Generate coverage report
dependency_groups =
coverage
commands =
coverage report
coverage xml