Skip to content

Bump version: 4.0.0 → 4.1.0 #46

Bump version: 4.0.0 → 4.1.0

Bump version: 4.0.0 → 4.1.0 #46

Workflow file for this run

name: Test BSB NEST adapter
on: [push, pull_request]
env:
NEST_VERSION: 3.6
jobs:
build:
if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.9", "3.10", "3.11"]
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install apt dependencies
run: |
sudo apt update
sudo apt install openmpi-bin libopenmpi-dev
- name: Cache NEST
id: cache-nest
uses: actions/cache@v4
with:
path: ${{ github.workspace }}/simulators/nest
key: ${{ runner.os }}-${{ matrix.python-version }}-nest
- name: Install NEST
if: steps.cache-nest.outputs.cache-hit != 'true'
run: .github/devops/install-nest.sh ${NEST_VERSION} ${{ github.workspace }}/simulators/nest
- name: Install dependencies & self
run: |
pip install --upgrade pip
# Install self, with test dependencies
pip install .[test,parallel]
- name: Run tests & coverage
run: |
source ${{ github.workspace }}/simulators/nest/bin/nest_vars.sh
coverage run -p -m unittest discover -v -s ./tests
mpiexec -n 2 coverage run -p -m unittest discover -v -s ./tests