-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathtox.ini
55 lines (49 loc) · 1.43 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
[tox]
envlist = py36, py37, py37mpi, py38, doctest
[testenv]
passenv = *
deps = numpy
tinydb
tqdm
click
pytest
scitrack
pandas
doctest: nbformat
doctest: nbconvert
doctest: jupyter_client
doctest: ipykernel
py{36,37,38}: pytest-cov
py37mpi: mpi4py
[testenv:doctest]
changedir = doc
commands =
# create ipython kernel
python -m ipykernel install --user --name python3
python doctest_rsts.py -1 -f app -s rst
python doctest_rsts.py -1 -f app -s ipynb
python doctest_rsts.py -1 -f cookbook -s ipynb
python doctest_rsts.py -1 -f cookbook -s rst
python doctest_rsts.py -1 -f examples -s rst
python doctest_rsts.py -1 -f examples -s ipynb
python doctest_rsts.py -1 -f draw -s ipynb
[testenv:py38]
changedir = tests
basepython = python3.8
commands =
pytest --junitxml=junit-{envname}.xml --cov-report xml --cov=cogent3 ./ --ignore=test_mpi.py
[testenv:py37]
changedir = tests
basepython = python3.7
commands =
pytest --junitxml=junit-{envname}.xml --cov-report xml --cov=cogent3 ./ --ignore=test_mpi.py
[testenv:py37mpi]
changedir = tests
basepython = python3.7
commands =
mpiexec -n 1 pytest --junitxml=junit-{envname}.xml --cov-report xml --cov=cogent3 ./ test_mpi.py
[testenv:py36]
changedir = tests
basepython = python3.6
commands =
pytest --junitxml=junit-{envname}.xml --cov-report xml --cov=cogent3 ./ --ignore=test_mpi.py