-
Notifications
You must be signed in to change notification settings - Fork 3
33 lines (30 loc) · 939 Bytes
/
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
name: Tests
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
tests:
name: Run Unit and Regression Tests
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
with:
submodules: true
- name: Set system to non-interactive mode
run: export DEBIAN_FRONTEND=noninteractive
- name: install hdf5 and valgrind
run: |
sudo apt update
sudo apt remove firefox -y --force-yes -qq
sudo apt install -y --force-yes -qq build-essential libhdf5-dev valgrind
- name: build and run tests
run: |
mkdir -p bin
cd bin
cmake -DSPINER_USE_HDF=ON -DSPINER_BUILD_TESTS=ON -DSPINER_TEST_USE_KOKKOS=OFF ..
make -j
make test
valgrind --leak-check=yes --track-origins=yes ./test/test.bin