-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
192 changed files
with
1,708 additions
and
39,060 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
git clone https://github.com/nest/nest-simulator $GITHUB_WORKSPACE/nest | ||
cd $GITHUB_WORKSPACE/nest | ||
git checkout tags/v$1 | ||
mkdir build | ||
cd build | ||
pip install cython cmake | ||
cmake .. \ | ||
-DCMAKE_INSTALL_PREFIX=$2 \ | ||
-Dwith-mpi=ON | ||
make install |
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 |
---|---|---|
|
@@ -8,46 +8,33 @@ jobs: | |
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
python-version: ["3.8", "3.9", "3.10"] | ||
python-version: ["3.9", "3.10", "3.11", "3.12"] | ||
steps: | ||
- uses: actions/[email protected] | ||
|
||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/[email protected] | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
|
||
- name: Install apt dependencies | ||
run: | | ||
sudo apt-get update | ||
sudo apt-get install openmpi-bin libopenmpi-dev | ||
- name: Cache pip | ||
uses: actions/cache@v3 | ||
with: | ||
path: ~/.cache/pip | ||
key: ${{ runner.os }}-pip-${{ hashFiles('requirements.txt') }} | ||
restore-keys: | | ||
${{ runner.os }}-pip- | ||
${{ runner.os }}- | ||
sudo apt update | ||
# Install `libopenmpi` for MPI | ||
sudo apt install openmpi-bin libopenmpi-dev | ||
# Install `libhdf5` for `morphio` | ||
sudo apt install libhdf5-dev | ||
- name: Install dependencies & self | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install wheel | ||
# Install the regular requirements | ||
pip install -r requirements.txt --prefer-binary | ||
# Install the default plugins, without dependencies, to avoid circular dependency | ||
# conflicts with the BSB itself | ||
pip install -r plugins.txt --prefer-binary --no-deps | ||
# Install the BSB from the repo without dependencies, already installed above. | ||
pip install -e . --no-deps | ||
pip install "dbbs-models>=4.0.0a0" | ||
# Install latest pip | ||
pip install --upgrade pip | ||
# Install bsb-core | ||
pip install .[test,mpi] | ||
- name: Run tests & coverage | ||
run: | | ||
coverage run -p -m unittest discover -v -s ./tests | ||
mpiexec -n 2 coverage run -p -m unittest discover -v -s ./tests | ||
BSB_PROFILING=TRUE coverage run -p -m unittest tests.test_env_options | ||
bash <(curl -s https://codecov.io/bash) | ||
- name: Test default plugins | ||
run: | | ||
git clone https://github.com/dbbs-lab/bsb-hdf5 | ||
pip install -e bsb-hdf5/ | ||
coverage run -p -m unittest discover bsb-hdf5/test | ||
bash <(curl -s https://codecov.io/bash) | ||
bash <(curl -s https://codecov.io/bash) |
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
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.