Skip to content

add ci, opt out of multisim #6

add ci, opt out of multisim

add ci, opt out of multisim #6

Workflow file for this run

name: Test BSB Arbor adapter
on: [ push, pull_request ]
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@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v3
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 }}-
- name: Install dependencies & self
run: |
python -m pip install --upgrade pip
pip install -e .[test]
- name: Run tests & coverage
run: |
coverage run -p -m unittest
mpiexec -n 2 coverage run -p -m unittest
bash <(curl -s https://codecov.io/bash)