Skip to content

Commit

Permalink
install NEST in Github Actions (#753)
Browse files Browse the repository at this point in the history
  • Loading branch information
apdavison committed Apr 20, 2022
1 parent 8fefeda commit 5bf3823
Showing 1 changed file with 19 additions and 4 deletions.
23 changes: 19 additions & 4 deletions .github/workflows/full-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
name: Test on ${{ matrix.os }} with Python ${{ matrix.python-version }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
fail-fast: true
matrix:
python-version: ["3.8", "3.9"]
os: ["ubuntu-latest", "windows-latest"]
Expand All @@ -24,10 +24,15 @@ jobs:
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install basic dependencies
- name: Install Linux system dependencies
if: startsWith(matrix.os, 'ubuntu')
run: |
sudo apt-get install libltdl-dev libgsl0-dev python3-all-dev openmpi-bin libopenmpi-dev
- name: Install basic Python dependencies
run: |
python -m pip install --upgrade pip
python -m pip install coverage coveralls nose-testconfig
python -m pip install mpi4py
python -m pip install -r requirements.txt
- name: Install Brian 2
run: |
Expand All @@ -36,12 +41,22 @@ jobs:
if: startsWith(matrix.os, 'ubuntu')
run: |
python -m pip install neuron
python -m pip install nrnutils
- name: Install NEST
if: startsWith(matrix.os, 'ubuntu')
run: |
python -m pip install cython
wget https://github.com/nest/nest-simulator/archive/refs/tags/v3.3.tar.gz -O nest-simulator-3.3.tar.gz
tar xzf nest-simulator-3.3.tar.gz
cmake -DCMAKE_INSTALL_PREFIX=$HOME/.local -Dwith-mpi=ON ./nest-simulator-3.3
make
make install
- name: Install PyNN itself
run: |
python setup.py install
- name: Run unit tests
run: |
nosetests --nologcapture --where=test/unittests --verbosity=3 test_assembly.py test_brian.py test_connectors_parallel.py test_connectors_serial.py test_core.py test_descriptions.py test_files.py test_idmixin.py test_lowlevelapi.py test_neuron.py test_parameters.py test_population.py test_populationview.py test_projection.py test_random.py test_recording.py test_simulation_control.py test_space.py test_standardmodels.py test_utility_functions.py
nosetests --nologcapture --where=test/unittests --verbosity=2 test_assembly.py test_brian.py test_connectors_parallel.py test_connectors_serial.py test_core.py test_descriptions.py test_files.py test_idmixin.py test_lowlevelapi.py test_nest.py test_neuron.py test_parameters.py test_population.py test_populationview.py test_projection.py test_random.py test_recording.py test_simulation_control.py test_space.py test_standardmodels.py test_utility_functions.py
- name: Run system tests
run: |
nosetests --nologcapture --where=test/system test_brian2.py test_neuron.py
nosetests --nologcapture --where=test/system --verbosity=2 test_nest.py test_brian2.py test_neuron.py

0 comments on commit 5bf3823

Please sign in to comment.