-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathtox.ini
64 lines (55 loc) · 1.41 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
53
54
55
56
57
58
59
60
61
62
63
64
[tox]
env_list =
pre-commit
[coverage:paths]
source =
horde_safety/
ignore_errors = True
skip_empty = True
[testenv]
description = base evironment
passenv =
AIWORKER_CACHE_HOME
TRANSFORMERS_CACHE
XDG_CACHE_HOME
HORDE_SAFETY_TEST_FOLDER
download = true
[testenv:pre-commit]
skip_install = true
deps = pre-commit
commands = pre-commit run --all-files --show-diff-on-failure
[testenv:tests-cuda-117]
description = install pytest in a virtual environment and invoke it on the tests folder
install_command = python -I -m pip install --extra-index-url https://download.pytorch.org/whl/cu117 {opts} {packages}
skip_install = false
deps =
pytest>=7
pytest-sugar
pytest-cov
requests
-r requirements.txt
commands =
pytest tests {posargs} --cov
[testenv:tests-cuda-118]
description = install pytest in a virtual environment and invoke it on the tests folder
install_command = python -I -m pip install --extra-index-url https://download.pytorch.org/whl/cu118 {opts} {packages}
skip_install = false
deps =
pytest>=7
pytest-sugar
pytest-cov
requests
-r requirements.txt
commands =
pytest tests {posargs} --cov
[testenv:tests-cpu-torch]
description = install pytest in a virtual environment and invoke it on the tests folder
skip_install = false
deps =
pytest>=7
pytest-sugar
pytest-cov
requests
-r requirements.txt
commands =
pytest tests {posargs} --cov