-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtox.ini
More file actions
40 lines (35 loc) · 763 Bytes
/
tox.ini
File metadata and controls
40 lines (35 loc) · 763 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
38
39
[tox]
env_list =
py38
py39
py310
py311
minversion = 4.8.0
[testenv]
description = run the tests with pytest
package = wheel
wheel_build_env = .pkg
deps =
pytest>=6
pytest-cov
commands =
pytest {tty:--color=yes} -s --cov=btensor --cov-append --cov-report=term-missing {posargs}
[testenv:xdist]
description = run the tests in parallel with pytest-xdist
deps =
pytest>=6
pytest-xdist
commands =
pytest -n 8 {tty:--color=yes} -s {posargs}
[testenv:docs]
description = build documentation using sphinx
changedir = docs
deps =
sphinx
sphinx-rtd-theme
commands =
sphinx-build -W -b html -d {envtmpdir}/doctrees source {envtmpdir}/html
[testenv:clean]
deps = coverage
skip_install = true
comamnds = coverage erase