Skip to content

Commit

Permalink
set environment vars for all steps
Browse files Browse the repository at this point in the history
  • Loading branch information
WeinaJi committed Jun 3, 2024
1 parent b0e22cc commit 0fb721f
Showing 1 changed file with 25 additions and 10 deletions.
35 changes: 25 additions & 10 deletions .github/workflows/simulation_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,14 @@ jobs:
export HOC_LIBRARY_PATH=$(pwd)/hoc_full
export NEURODAMUS_PYTHON=$(pwd)/neurodamus/data
export CORENEURONLIB=$(pwd)/x86_64/libcorenrnmech.so
export NRNMECH_LIB_PATH=$(pwd)/x86_64/libnrnmech.so
export PATH=$(pwd)/x86_64:$PATH
echo "PYTHONPATH=$PYTHONPATH" >> $GITHUB_ENV;
echo "HOC_LIBRARY_PATH=$HOC_LIBRARY_PATH" >> $GITHUB_ENV;
echo "CORENEURONLIB=$CORENEURONLIB" >> $GITHUB_ENV;
echo "NRNMECH_LIB_PATH=$NRNMECH_LIB_PATH" >> $GITHUB_ENV;
which special
# launch simulation with NEURON
Expand All @@ -200,19 +207,27 @@ jobs:
mpirun -np 2 special -mpi -python $NEURODAMUS_PYTHON/init.py --configFile=simulation_sonata_coreneuron.json
ls reporting_coreneuron/*.h5
- name: test-integration
- name: test-unit
run: |
. ./venv/bin/activate
pip install -r tests/requirements.txt
export PYTHONPATH=$(pwd)/nrn/build/lib/python:$PYTHONPATH
export HOC_LIBRARY_PATH=$(pwd)/hoc_full
export NEURODAMUS_PYTHON=$(pwd)/neurodamus/data
export CORENEURONLIB=$(pwd)/x86_64/libcorenrnmech.so
export NRNMECH_LIB_PATH=$(pwd)/x86_64/libnrnmech.so
export PATH=$(pwd)/x86_64:$PATH
pytest tests/unit
- name: test-integration
run: |
. ./venv/bin/activate
pytest -x --forked tests/integration
- name: live debug session, comment out
if: failure()
uses: mxschmitt/action-tmate@v3
# - name: test-integration-e2e
# run: |
# . ./venv/bin/activate
# pytest -s -x --forked --durations=5 --durations-min=15 tests/integration-e2e

# - name: test-scientific
# run: |
# . ./venv/bin/activate
# pytest -s -x --forked --durations=5 --durations-min=15 tests/scientific

# - name: live debug session, comment out
# if: failure()
# uses: mxschmitt/action-tmate@v3

0 comments on commit 0fb721f

Please sign in to comment.