|
a |
|
b/tox.ini |
|
|
1 |
; a generative tox configuration, see: https://testrun.org/tox/latest/config.html#generative-envlist |
|
|
2 |
|
|
|
3 |
[tox] |
|
|
4 |
envlist = |
|
|
5 |
clean, |
|
|
6 |
check, |
|
|
7 |
{py36}, |
|
|
8 |
report, |
|
|
9 |
docs, |
|
|
10 |
tf2 |
|
|
11 |
|
|
|
12 |
[testenv:tf2] |
|
|
13 |
basepython = |
|
|
14 |
{tf2}: {env:TOXPYTHON:python3.7} |
|
|
15 |
setenv = |
|
|
16 |
PYTHONPATH={toxinidir}/tests |
|
|
17 |
PYTHONUNBUFFERED=yes |
|
|
18 |
passenv = |
|
|
19 |
* |
|
|
20 |
usedevelop = false |
|
|
21 |
install_command = pip install --no-cache-dir {packages} |
|
|
22 |
list_depencencies_command = |
|
|
23 |
setuptools |
|
|
24 |
deps = |
|
|
25 |
cython |
|
|
26 |
pytest |
|
|
27 |
pytest-travis-fold |
|
|
28 |
pytest-cov |
|
|
29 |
numpy |
|
|
30 |
progress |
|
|
31 |
pandas |
|
|
32 |
Biopython==1.77 |
|
|
33 |
keras==2.4.3 |
|
|
34 |
tensorflow==2.2.0 |
|
|
35 |
h5py<3.0.0 |
|
|
36 |
pyBigWig |
|
|
37 |
pybedtools |
|
|
38 |
pysam<0.16,!=0.15.3 |
|
|
39 |
urllib3 |
|
|
40 |
matplotlib |
|
|
41 |
seaborn |
|
|
42 |
scikit-learn |
|
|
43 |
pydot |
|
|
44 |
commands = |
|
|
45 |
{posargs:py.test --cov --cov-report=term-missing -vv tests -p no:warnings} |
|
|
46 |
|
|
|
47 |
[testenv] |
|
|
48 |
basepython = |
|
|
49 |
pypy: {env:TOXPYTHON:pypy} |
|
|
50 |
{docs,spell}: {env:TOXPYTHON:python3.6} |
|
|
51 |
{py36}: {env:TOXPYTHON:python3.6} |
|
|
52 |
{bootstrap,clean,check,report,coveralls,codecov}: {env:TOXPYTHON:python3} |
|
|
53 |
setenv = |
|
|
54 |
PYTHONPATH={toxinidir}/tests |
|
|
55 |
PYTHONUNBUFFERED=yes |
|
|
56 |
passenv = |
|
|
57 |
* |
|
|
58 |
usedevelop = false |
|
|
59 |
install_command = pip install --no-cache-dir {packages} |
|
|
60 |
list_depencencies_command = |
|
|
61 |
setuptools |
|
|
62 |
deps = |
|
|
63 |
cython |
|
|
64 |
pytest |
|
|
65 |
pytest-travis-fold |
|
|
66 |
pytest-cov |
|
|
67 |
numpy |
|
|
68 |
progress |
|
|
69 |
pandas |
|
|
70 |
Biopython==1.77 |
|
|
71 |
keras==2.2.4 |
|
|
72 |
tensorflow==1.14.0 |
|
|
73 |
h5py<3.0.0 |
|
|
74 |
pyBigWig |
|
|
75 |
pybedtools |
|
|
76 |
pysam<0.16,!=0.15.3 |
|
|
77 |
urllib3 |
|
|
78 |
matplotlib |
|
|
79 |
seaborn |
|
|
80 |
scikit-learn |
|
|
81 |
pydot |
|
|
82 |
commands = |
|
|
83 |
{posargs:py.test --cov --cov-report=term-missing -vv tests -p no:warnings} |
|
|
84 |
|
|
|
85 |
[testenv:bootstrap] |
|
|
86 |
deps = |
|
|
87 |
jinja2 |
|
|
88 |
matrix |
|
|
89 |
skip_install = true |
|
|
90 |
commands = |
|
|
91 |
python ci/bootstrap.py |
|
|
92 |
[testenv:spell] |
|
|
93 |
setenv = |
|
|
94 |
SPELLCHECK=1 |
|
|
95 |
commands = |
|
|
96 |
- sphinx-build -b spelling docs dist/docs |
|
|
97 |
skip_install = true |
|
|
98 |
recreate = true |
|
|
99 |
deps = |
|
|
100 |
-r{toxinidir}/docs/requirements.txt |
|
|
101 |
sphinxcontrib-spelling |
|
|
102 |
pyenchant |
|
|
103 |
|
|
|
104 |
[testenv:docs] |
|
|
105 |
deps = |
|
|
106 |
-r{toxinidir}/docs/requirements.txt |
|
|
107 |
commands = |
|
|
108 |
- sphinx-build {posargs:-E} -b html docs dist/docs |
|
|
109 |
- sphinx-build -b linkcheck docs dist/docs |
|
|
110 |
|
|
|
111 |
[testenv:check] |
|
|
112 |
deps = |
|
|
113 |
docutils |
|
|
114 |
check-manifest |
|
|
115 |
bleach>=2.0 |
|
|
116 |
pylama |
|
|
117 |
pylint |
|
|
118 |
progress |
|
|
119 |
readme-renderer |
|
|
120 |
pygments |
|
|
121 |
isort |
|
|
122 |
numpy |
|
|
123 |
pybedtools |
|
|
124 |
keras |
|
|
125 |
pandas |
|
|
126 |
Biopython==1.77 |
|
|
127 |
skip_install = true |
|
|
128 |
ignore_errors = true |
|
|
129 |
commands = |
|
|
130 |
python setup.py check --metadata --restructuredtext |
|
|
131 |
check-manifest {toxinidir} |
|
|
132 |
- isort -q --check-only --diff --recursive src tests setup.py -s tests/test_coverage.py |
|
|
133 |
- pylint --rcfile .pylintrc -r y setup.py |
|
|
134 |
- pylint --rcfile .pylintrc -r y src/janggu |
|
|
135 |
|
|
|
136 |
|
|
|
137 |
[testenv:coveralls] |
|
|
138 |
deps = |
|
|
139 |
coveralls |
|
|
140 |
skip_install = true |
|
|
141 |
commands = |
|
|
142 |
coveralls [] |
|
|
143 |
|
|
|
144 |
[testenv:codecov] |
|
|
145 |
deps = |
|
|
146 |
codecov |
|
|
147 |
skip_install = true |
|
|
148 |
commands = |
|
|
149 |
coverage xml --ignore-errors |
|
|
150 |
codecov [] |
|
|
151 |
|
|
|
152 |
|
|
|
153 |
[testenv:report] |
|
|
154 |
deps = coverage |
|
|
155 |
skip_install = true |
|
|
156 |
commands = |
|
|
157 |
- coverage combine --append || true |
|
|
158 |
coverage report |
|
|
159 |
coverage html |
|
|
160 |
|
|
|
161 |
[testenv:clean] |
|
|
162 |
commands = coverage erase |
|
|
163 |
skip_install = true |
|
|
164 |
deps = coverage |