forked from terrapower/armi
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtox.ini
72 lines (65 loc) · 1.52 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
62
63
64
65
66
67
68
69
70
71
72
[tox]
envlist = py38,lint,cov
# need pip at least with --prefer-binary
requires =
pip >= 20.2
[testenv]
basepython = {env:PYTHON3_PATH:python3}
deps=
pip >= 20.2
-r{toxinidir}/requirements.txt
-r{toxinidir}/requirements-testing.txt
setenv =
PYTHONPATH = {toxinidir}
USERNAME = armi
commands =
pytest --ignore=armi/utils/tests/test_gridGui.py {posargs} armi
[testenv:doc]
whitelist_externals =
/usr/bin/git
/usr/bin/make
deps=
-r{toxinidir}/doc/requirements-docs.txt
changedir = doc
commands =
git submodule init
git submodule update
make html
[testenv:cov]
deps=
pip>=20.2
-r{toxinidir}/requirements.txt
-r{toxinidir}/requirements-testing.txt
commands =
pytest --cov-config=.coveragerc --cov=armi --ignore=armi/utils/tests/test_gridGui.py --cov-fail-under=80 {posargs} armi
# NOTE: This only runs the MPI unit tests.
# NOTE: This will only work in POSIX/BASH Linux.
[testenv:mpitest]
deps=
pip >= 20.2
mpi4py
whitelist_externals =
/usr/bin/mpiexec
commands =
pip install -r requirements.txt
pip install -r requirements-testing.txt
mpiexec -n 2 --use-hwthread-cpus pytest armi/tests/test_mpiFeatures.py
[testenv:lint]
ignore_errors = true
commands =
- pylint armi --rcfile={toxinidir}/pylintrc
[testenv:report]
skip_install = true
deps=
coveralls
commands =
coverage report
coverage html
coveralls --service=github
depends =
cov
passenv = TOXENV CI GITHUB_*
[testenv:clean]
deps = coverage
skip_install = true
commands = coverage erase