diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 0b8cb23..a78599e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -110,7 +110,6 @@ jobs: mpi-default-bin \ libmpich-dev python -m pip install neuron - which nrniv # install package - name: Install the package @@ -243,9 +242,9 @@ jobs: run: python -m pip install .[tests] - name: Run the tests - run: python -m pytest tests/ --cov=./biosimulators_pyneuroml/ --cov-report=xml - env: - NEURON_HOME: /opt/hostedtoolcache/Python/3.9.8/x64 + run: | + export NEURON_HOME=$(which nrniv | rev | cut -d '/' -f 3- | rev) + python -m pytest tests/ --cov=./biosimulators_pyneuroml/ --cov-report=xml - name: Upload the coverage report to Codecov uses: codecov/codecov-action@v2