-
Notifications
You must be signed in to change notification settings - Fork 98
/
tox.ini
54 lines (49 loc) · 1.36 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
[tox]
envlist = py{3}-unit-functional-style
minversion = 4
[gh-actions]
python =
3.9: py3
3.10: py3
3.11: py3
3.12: py3
[testenv]
envdir =
py3{9,10,11,12,}{-unit,-functional,-style,-syntax}: {toxworkdir}/py3
docs: {toxworkdir}/docs
extras = tests
deps =
coverage
flake8
neuron-nightly
sh
pytest-cov
download = true
allowlist_externals =
make
find
cd
pwd
passenv = https_proxy
coverage_options = --cov-append --cov-report=xml --cov-config=.coveragerc
setenv =
; for neuroml tests
NEURON_HOME={envdir}
commands =
make clean
style: pycodestyle --ignore=E402,W503,W504 bluepyopt
syntax: flake8 . --count --select=E9,F63,F72,F82 --show-source --statistics
unit: pytest --cov=bluepyopt {[testenv]coverage_options} bluepyopt/tests -k unit
functional: make stochkv_prepare l5pc_prepare sc_prepare meta_prepare
functional: pytest --cov=bluepyopt {[testenv]coverage_options} bluepyopt/tests -k 'not unit and not neuroml'
; separate neuroml test from the other ones
; because it redefines l5pc template which makes neuron crash and tests fail
functional: pytest --cov=bluepyopt {[testenv]coverage_options} bluepyopt/tests -m neuroml
[testenv:docs]
basepython = python3.9
changedir = docs
deps =
sphinx
sphinx-bluebrain-theme
commands = make html SPHINXOPTS=-W
allowlist_externals = make