-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtox.ini
45 lines (40 loc) · 1.31 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
[tox]
envlist = py38, flake8
[travis]
python =
3.8: py38
[testenv:flake8]
basepython = python
deps = flake8
commands = flake8 bayes_window tests
[testenv]
setenv =
PYTHONPATH = {toxinidir}
deps =
-r{toxinidir}/requirements_dev.txt
-r{toxinidir}/requirements.txt
pytest
pytest-cov
pytest-xdist
; 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 line:
; -r{toxinidir}/requirements.txt
commands =
# model comparison somehow needs to run separately:
pytest -s --basetemp={envtmpdir} --cov-report term --cov-report xml --cov bayes-window -m 'serial'
pytest -s --basetemp={envtmpdir} --cov-report term --cov-report xml --cov bayes-window -m 'not serial' -n7
coverage combine
coverage report -m
coverage xml -o {toxworkdir}/coverage.xml
;[testenv:coverage]
;description = [run locally after tests]: combine coverage data and create report;
;deps = {[testenv]deps}
; coverage >= 5.0.1
;skip_install = True
;setenv = COVERAGE_FILE={toxworkdir}/.coverage
;commands = coverage combine
; coverage report -m
; coverage xml -o {toxworkdir}/coverage.xml
; coverage html -d {toxworkdir}/htmlcov
;depends = py38, pypy, pypy3
;parallel_show_output = True