-
Notifications
You must be signed in to change notification settings - Fork 12
77 lines (64 loc) · 1.81 KB
/
run-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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
name: Run tests
on: [pull_request, push]
jobs:
build-linux-cpp:
name: Run tests on ubuntu-20.04
runs-on: ubuntu-20.04
strategy:
matrix:
compiler:
- CC: clang
CXX: clang++
- CC: gcc
CXX: g++
steps:
- name: Checkout repository
uses: actions/checkout@v3
with:
submodules: 'true'
- name: Install packages
run: sudo apt-get update && sudo apt-get install libhdf5-dev
- name: Build and run unittests
env:
CC: ${{ matrix.compiler.CC }}
CXX: ${{ matrix.compiler.CXX }}
run: |
./ci/cpp_test.sh
build-linux-python:
name: Run python tests on ubuntu-20.04
runs-on: ubuntu-20.04
strategy:
matrix:
python-version: ['3.7', '3.8', '3.9', ]
steps:
- name: Checkout repository
uses: actions/checkout@v3
with:
submodules: 'true'
- uses: actions/setup-python@v4
name: Install Python
with:
python-version: ${{ matrix.python-version }}
- name: Install packages
run: sudo apt-get update && sudo apt-get install libhdf5-dev doxygen
- name: Build and run unittests
run: |
./ci/python_test.sh
build-macos:
name: Run tests on macos
runs-on: macos-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
with:
submodules: 'true'
- name: Install packages on MacOS
run: |
brew update
brew install cmake || true # macos image has cmake installed, but a new version may exist; ignore it if so
brew install doxygen
brew install hdf5
- name: Build and run unittests
run: |
./ci/cpp_test.sh
./ci/python_test.sh