-
Notifications
You must be signed in to change notification settings - Fork 16
40 lines (34 loc) · 1.19 KB
/
build.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
name: Build and test BSB
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", "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 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: |
# Install latest pip
pip install --upgrade pip
# Install bsb-core
pip install .[test,parallel]
- 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)