forked from facebookresearch/ReAgent
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtox.ini
More file actions
39 lines (33 loc) · 1.24 KB
/
tox.ini
File metadata and controls
39 lines (33 loc) · 1.24 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
# tox (https://tox.readthedocs.io/) is a tool for running tests
# in multiple virtualenvs. This configuration file will run the
# test suite on all supported python versions. To use it, "pip install tox"
# and then run "tox" from this directory.
[tox]
envlist = py37
isolated_build = True
install_command=pip install --pre torch torchvision -f https://download.pytorch.org/whl/nightly/cpu/torch_nightly.html {opts} {packages}
# install CUDA 10.1 Torch
[ubuntu_gpu]
install_command=pip install --pre torch torchvision -f https://download.pytorch.org/whl/nightly/cu101/torch_nightly.html {opts} {packages}
[testenv]
extras =
gym
test
setenv =
PYTEST_ADDOPTS=--verbose -d --tx popen --cov --cov-report=xml --cov-append --junitxml={envlogdir}/junit-{envname}.xml
commands =
pytest -n 4 -m "not serial"
pytest -n0 -m "serial"
[testenv:circleci_unittest]
install_command={[ubuntu_gpu]install_command}
commands =
pytest reagent/test -n auto -m "not serial"
pytest reagent/test -n0 -m "serial"
[testenv:circleci_gym_unittest]
install_command={[ubuntu_gpu]install_command}
commands =
pytest reagent/gym/tests -n2 -m "not serial"
pytest reagent/gym/tests -n0 -m "serial"
[testenv:debug]
commands=
pytest -n4 --tx popen {posargs}