-
Notifications
You must be signed in to change notification settings - Fork 5
46 lines (36 loc) · 1.05 KB
/
test.yaml
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
name: test
on: push
env:
BUILD_TYPE: Debug
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup Fortran
uses: awvwgk/setup-fortran@main
id: setup-fortran
with:
compiler: gcc
version: 11
- name: Setup Python
uses: actions/setup-python@v3
with:
python-version: 3.9
- name: Install dependencies
run: |
sudo apt-get install valgrind
python -m pip install --upgrade pip
python -m pip install PyYAML
- name: configure cmake
run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}}
- name: build
run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}}
- name: test
working-directory: ${{github.workspace}}/build
run: |
./tests/test_yaml
valgrind --error-exitcode=1 --leak-check=full ./tests/test_yaml
python ../tests/test_roundtrip.py
./tests/example
valgrind --error-exitcode=1 --leak-check=full ./tests/example