-
Notifications
You must be signed in to change notification settings - Fork 6
34 lines (30 loc) · 1.03 KB
/
automated-tests.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
name: Automated Tests
on:
push: # all pushes, but only to the specified branches
branches: [ devel, master, main ]
pull_request: # all pull requests
workflow_dispatch: # allows manual triggering on web interface
jobs:
automated-tests:
runs-on: ubuntu-latest
# matrix docs: https://docs.github.com/en/actions/learn-github-actions/workflow-syntax-for-github-actions#jobsjob_idstrategymatrix
strategy:
matrix:
include:
- name: openmpi
packages: libopenmpi-dev openmpi-bin
- name: mpich
packages: libmpich-dev mpich
- name: none
packages:
steps:
- name: install dependencies
run: >
sudo apt-get update &&
sudo apt-get install python3 python3-pip ${{ matrix.packages }} &&
pip3 install --user setuptools toml
- uses: actions/checkout@v2
- name: build tests
run: make -C tests -j ${{ steps.cpu-cores.outputs.count }}
- name: run tests
run: make check