-
Notifications
You must be signed in to change notification settings - Fork 2
/
tox.ini
61 lines (53 loc) · 1.28 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
[tox]
envlist = py36,py37,py38,coverage,benchmark,docs
[testenv]
changedir = test
whitelist_externals = bash
setenv = LD_LIBRARY_PATH = {env:LD_LIBRARY_PATH}{:}/opt/rdkit-libs
commands =
bash -c "cp -r /opt/rdkit `python ../.locate-site-packages.py`"
pytest
[pytest]
addopts = -ra
python_files = *.py
python_functions = test_*
norecursedirs = .tox .git
[testenv:py36]
basepython = python3.6
deps =
-rrequirements/tests.txt
-rrequirements/common.txt
[testenv:py37]
basepython = python3.7
deps =
-rrequirements/tests.txt
-rrequirements/common.txt
[testenv:py38]
basepython = python3.8
deps =
-rrequirements/tests.txt
-rrequirements/common.txt
[testenv:coverage]
basepython = python3.8
deps =
-rrequirements/tests.txt
-rrequirements/common.txt
commands =
bash -c "cp -r /opt/rdkit `python ../.locate-site-packages.py`"
pytest --cov=graphdot --cov-report=term --cov-report=html
[testenv:benchmark]
changedir = benchmark
basepython = python3.8
deps =
-rrequirements/tests.txt
-rrequirements/common.txt
commands =
bash -c "cp -r /opt/rdkit `python ../.locate-site-packages.py`"
pytest --benchmark-only
[testenv:docs]
basepython = python3.8
changedir = docs
deps =
-rrequirements/docs.txt
commands =
sphinx-build -b html . _build/html