Skip to content

update py test matrix #191

update py test matrix

update py test matrix #191

Workflow file for this run

name: Test BSB HDF5 engine
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@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
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@v2
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('pyproject.toml') }}
restore-keys: |
${{ runner.os }}-pip-
${{ runner.os }}-
- name: Install dependencies & self
run: |
python -m pip install --upgrade pip
pip install -e .[test]
pip install bsb-test==4.0.0rc3 --no-deps
- 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)