Skip to content

Commit

Permalink
Restore tox.ini
Browse files Browse the repository at this point in the history
  • Loading branch information
jorblancoa committed Oct 24, 2024
1 parent 6a048fc commit df92fde
Showing 1 changed file with 64 additions and 0 deletions.
64 changes: 64 additions & 0 deletions tox.ini
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

0 comments on commit df92fde

Please sign in to comment.