-
Notifications
You must be signed in to change notification settings - Fork 3
137 lines (131 loc) · 3.67 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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
# This workflow will install dependencies, run tests
name: Running tests
on:
push:
branches:
- main
pull_request:
workflow_dispatch:
# abort old runs if a new one is started
concurrency:
group: ${{ github.head_ref }}-tests
cancel-in-progress: true
env:
# enable OpenMPI oversubscription everywhere
OMPI_MCA_rmaps_base_oversubscribe: 1
# ignore cuda bindings
OMPI_MCA_opal_warn_on_missing_libcuda: 0
# allow running as root
OMPI_ALLOW_RUN_AS_ROOT: 1
OMPI_ALLOW_RUN_AS_ROOT_CONFIRM: 1
jobs:
tests_default_release:
runs-on: ubuntu-20.04
steps:
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install \
git \
git-lfs \
clang \
cmake \
libhdf5-dev \
libomp-dev \
libtbb-dev \
doxygen \
graphviz \
python3-numpy \
python3-vtk7
- uses: actions/[email protected]
with:
lfs: true
- name: Build project
run: |
mkdir build
cd build
CC=clang CXX=clang++ cmake ..
make -j 4
- name: Test with ctest
run: |
cd build
# disable all irrelevant functor tests. We need to change this if we switch configuration
ctest -j 4 --output-on-failure -C validation -E 'CollisionFunctorIntegration.*\/.[^v]'
test_ASAN:
runs-on: ubuntu-20.04
steps:
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install \
git \
git-lfs \
clang \
cmake \
libhdf5-dev \
libomp-dev \
libtbb-dev \
python3-numpy \
python3-vtk7
- uses: actions/[email protected]
with:
lfs: true
- name: Build project
run: |
mkdir build
cd build
CC=clang CXX=clang++ cmake \
-DCMAKE_BUILD_TYPE=Debug \
-DLADDS_DOXYGEN=OFF \
-DLADDS_ENABLE_ADDRESS_SANITIZER=ON \
-DLADDS_MPI=OFF \
..
make -j 4
- name: Test with ctest
run: |
cd build
# disable all irrelevant functor tests. We need to change this if we switch configuration
ctest -j 4 --output-on-failure -C validation -E 'CollisionFunctorIntegration.*\/.[^v]'
test_TSAN:
runs-on: ubuntu-20.04
container:
image: autopas/autopas-build-archer
steps:
- name: Install dependencies
run: |
apt-get update
apt-get install -y \
git-lfs \
libhdf5-dev \
libtbb-dev \
python3-numpy \
python3-vtk7
- uses: actions/[email protected]
with:
lfs: true
- name: Build project
run: |
mkdir build
cd build
CC=clang CXX=clang++ cmake \
-DCMAKE_BUILD_TYPE=Debug \
-DLADDS_DOXYGEN=OFF \
-DLADDS_ENABLE_THREAD_SANITIZER=ON \
..
make -j 4
- name: Test with ctest
run: |
cd build
# disable all irrelevant functor tests. We need to change this if we switch configuration
ctest -j 4 --output-on-failure -C validation -E 'CollisionFunctorIntegration.*\/.[^v]'
format_check:
runs-on: ubuntu-20.04
steps:
- uses: actions/[email protected]
- uses: DoozyX/[email protected]
with:
source: 'src tests'
# exclude: 'none'
extensions: 'h,cpp'
clangFormatVersion: 9
style: file