-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #95 from RCagnol/StepCurrentNest
Allowing the use of the models with integrated step current
- Loading branch information
Showing
89 changed files
with
6,113 additions
and
82 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
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,63 @@ | ||
name: Fast model stepcurrentmodule tests | ||
|
||
on: [push, pull_request] | ||
|
||
jobs: | ||
|
||
pytest: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Pytest Unit Tests | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: '3.9' | ||
- name: Install prerequisites | ||
run: | | ||
sudo apt-get update | ||
sudo apt-get install python3-setuptools subversion git libopenmpi-dev g++ libjpeg8 libjpeg8-dev libfreetype6 libfreetype6-dev zlib1g-dev libpng++-dev libncurses5 libncurses5-dev libreadline-dev liblapack-dev libblas-dev gfortran libgsl0-dev openmpi-bin python-tk cmake | ||
pip3 install pytest pytest-cov pytest-randomly coverage black | ||
# TODO: Remove fixed numpy and pynn versions after the PyNN pull request | ||
# https://github.com/NeuralEnsemble/PyNN/pull/762 is accepted | ||
pip3 install numpy==1.23.5 scipy mpi4py matplotlib quantities lazyarray interval Pillow param==1.5.1 parameters neo cython psutil future requests elephant pytest-xdist pytest-timeout junitparser numba | ||
- name: Download and install imagen | ||
run: | | ||
git clone https://github.com/antolikjan/imagen.git | ||
cd imagen | ||
python setup.py install | ||
cd .. | ||
- name: Download and install PyNN | ||
run: | | ||
git clone https://github.com/RCagnol/PyNN.git | ||
cd PyNN | ||
git checkout PyNNStepCurrentModule | ||
pip install . | ||
cd .. | ||
- name: Install Nest | ||
run: | | ||
wget https://github.com/nest/nest-simulator/archive/v3.4.tar.gz | ||
tar xvfz v3.4.tar.gz | ||
cd nest-simulator-3.4 | ||
cmake -Dwith-mpi=ON -Dwith-boost=ON -DCMAKE_INSTALL_PREFIX:PATH=$pythonLocation -Dwith-optimize='-O3' ./ | ||
make -j8 | ||
make -j8 install | ||
cd .. | ||
python -c 'import nest' | ||
- name: Install stepcurrentmodule | ||
run: | | ||
git clone https://github.com/RCagnol/nest-step-current-module.git | ||
cd nest-step-current-module | ||
cmake -Dwith-mpi=ON -Dwith-boost=ON -Dwith-nest=$pythonLocation/bin/nest-config -Dwith-optimize='-O3' ./ | ||
make -j8 | ||
make -j8 install | ||
cd .. | ||
- name: Install mozaik | ||
run: python setup.py install | ||
|
||
- name: Test with pytest | ||
run: pytest tests --cov=mozaik -m "stepcurrentmodule" |
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
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
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
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
Oops, something went wrong.