-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
6a048fc
commit df92fde
Showing
1 changed file
with
64 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
[base] | ||
name = neurodamus | ||
|
||
[tox] | ||
envlist = flake8, unit | ||
|
||
[testenv] | ||
deps = | ||
-r tests/requirements.txt | ||
|
||
|
||
[testenv:unit] | ||
commands = | ||
pytest tests/unit | ||
|
||
|
||
[testenv:integration] | ||
deps = | ||
NEURON | ||
morphio | ||
-r tests/requirements.txt | ||
passenv = NEURODAMUS_NEOCORTEX_ROOT | ||
setenv = | ||
# build_ndcore.sh will install into _lib | ||
HOC_LIBRARY_PATH={toxinidir}/_lib | ||
NRNMECH_LIB_PATH={toxinidir}/_lib/libnrnmech.so | ||
NEURON_INIT_MPI=0 | ||
PYTHONPATH = {toxinidir}/core/python | ||
allowlist_externals = | ||
{toxinidir}/ci/build_ndcore.sh | ||
commands = | ||
{toxinidir}/ci/build_ndcore.sh {toxinidir}/neurodamus/data | ||
pytest -x --forked tests/integration | ||
|
||
|
||
[testenv:bbp-model] | ||
# Please module load neurodamus-neocortex py-neurodamus beforehand | ||
passenv = * | ||
setenv = | ||
PYTHONPATH={toxinidir}:{env:PYTHONPATH} | ||
HOC_LIBRARY_PATH={toxinidir}/core/hoc:{env:HOC_LIBRARY_PATH} | ||
NEURON_INIT_MPI=1 | ||
commands = | ||
python -c "import os; print(os.environ.get('HOC_LIBRARY_PATH', ''))" | ||
pytest -s -x --forked --durations=5 --durations-min=15 {posargs:tests/integration-e2e} | ||
|
||
|
||
[testenv:flake8] | ||
changedir = {toxinidir} | ||
deps = flake8-pyproject | ||
skip_install = True | ||
commands = flake8 | ||
|
||
|
||
[testenv:docs] | ||
changedir = {toxinidir} | ||
deps = | ||
sphinx<5.1.0 | ||
sphinx-bluebrain-theme | ||
setenv = | ||
PYTHONPATH = {toxinidir} | ||
PIP_INDEX_URL = https://bbpteam.epfl.ch/repository/devpi/simple | ||
commands = | ||
sphinx-build -T -W docs docs/_build |