forked from wandb/wandb
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
44 lines (37 loc) · 1.39 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
[tox]
envlist = py27, py35, py36
[testenv:flake8]
basepython=python
deps=flake8
commands=flake8 wandb
[testenv:py27]
commands =
pip install https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-1.5.0-cp27-none-linux_x86_64.whl
pip install http://download.pytorch.org/whl/cpu/torch-0.3.1-cp27-cp27mu-linux_x86_64.whl
pip install keras
[testenv:py35]
commands =
pip install https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-1.5.0-cp35-cp35m-linux_x86_64.whl
pip install http://download.pytorch.org/whl/cpu/torch-0.3.1-cp35-cp35m-linux_x86_64.whl
pip install keras
[testenv:py36]
commands =
pip install https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-1.5.0-cp36-cp36m-linux_x86_64.whl
pip install http://download.pytorch.org/whl/cpu/torch-0.3.1-cp36-cp36m-linux_x86_64.whl
pip install keras
[testenv]
setenv =
PYTHONPATH = {toxinidir}:{toxinidir}/wandb
passenv = CIRCLE_BRANCH
deps =
-r{toxinidir}/requirements_dev.txt
whitelist_externals = mkdir
commands =
mkdir -p "{env:CIRCLE_TEST_REPORTS}"/tox
py.test --cov=wandb --basetemp={envtmpdir} \
--junitxml="{env:CIRCLE_TEST_REPORTS}/tox/tests-{envname}.xml"
coveralls
; If you want to make tox run the tests with the same versions, create a
; requirements.txt with the pinned versions and uncomment the following lines:
; deps =
; -r{toxinidir}/requirements.txt