-
Notifications
You must be signed in to change notification settings - Fork 19
295 lines (279 loc) · 8.6 KB
/
idefix-ci.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
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
name: Idefix CIs
on:
workflow_dispatch:
push:
branches:
- master
- v2.0
pull_request:
paths-ignore:
- '.github/ISSUE_TEMPLATE/*'
concurrency:
# auto-cancel any concurrent job *in the same context*
# see https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#concurrency
# see https://docs.github.com/en/actions/learn-github-actions/contexts#github-context
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
env:
TESTME_OPTIONS: -cuda -Werror
PYTHONPATH: ${{ github.workspace }}
IDEFIX_DIR: ${{ github.workspace }}
jobs:
Linter:
# Don't do this in forks
if: ${{ github.repository == 'idefix-code/idefix' || github.repository == 'glesur/idefix' }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: 3.x
- uses: pre-commit/action@v3.0.0
- uses: pre-commit-ci/lite-action@v1.0.0
if: always()
ShocksHydro:
needs: Linter
runs-on: self-hosted
steps:
- name: Check out repo
uses: actions/checkout@v3
with:
submodules: recursive
- name: Sod test
run: |
cd $IDEFIX_DIR/test/HD/sod
./testme.py -all $TESTME_OPTIONS
- name: Isothermal Sod test
run: |
cd $IDEFIX_DIR/test/HD/sod-iso
./testme.py -all $TESTME_OPTIONS
- name: Mach reflection test
run: |
cd $IDEFIX_DIR/test/HD//MachReflection
./testme.py -all $TESTME_OPTIONS
ParabolicHydro:
needs: Linter
runs-on: self-hosted
steps:
- name: Check out repo
uses: actions/checkout@v3
with:
submodules: recursive
- name: Viscous flow past cylinder
run: |
cd $IDEFIX_DIR/test/HD/ViscousFlowPastCylinder
./testme.py -all $TESTME_OPTIONS
- name: Viscous disk
run: |
cd $IDEFIX_DIR/test/HD/ViscousDisk
./testme.py -all $TESTME_OPTIONS
- name: Thermal diffusion
run: |
cd $IDEFIX_DIR/test/HD/thermalDiffusion
./testme.py -all $TESTME_OPTIONS
ShocksMHD:
needs: Linter
runs-on: self-hosted
steps:
- name: Check out repo
uses: actions/checkout@v3
with:
submodules: recursive
- name: MHD Sod test
run: |
cd $IDEFIX_DIR/test/MHD/sod
./testme.py -all $TESTME_OPTIONS
- name: MHD Isothermal Sod test
run: |
cd $IDEFIX_DIR/test/MHD/sod-iso
./testme.py -all $TESTME_OPTIONS
- name: Orszag Tang
run: |
cd $IDEFIX_DIR/test/MHD/OrszagTang
./testme.py -all $TESTME_OPTIONS
- name: Orszag Tang 3D+restart tests
run: |
cd $IDEFIX_DIR/test/MHD/OrszagTang3D
./testme.py -all $TESTME_OPTIONS
ParabolicMHD:
needs: Linter
runs-on: self-hosted
steps:
- name: Check out repo
uses: actions/checkout@v3
with:
submodules: recursive
- name: Ambipolar C Shock
run: |
cd $IDEFIX_DIR/test/MHD/AmbipolarCshock
./testme.py -all $TESTME_OPTIONS
- name: Ambipolar C Shock 3D
run: |
cd $IDEFIX_DIR/test/MHD/AmbipolarCshock3D
./testme.py -all $TESTME_OPTIONS
- name: Resistive Alfvén wave
run: |
cd $IDEFIX_DIR/test/MHD/ResistiveAlfvenWave
./testme.py -all $TESTME_OPTIONS
- name: Grid coarsening diffusion
run: |
cd $IDEFIX_DIR/test/MHD/Coarsening
./testme.py -all $TESTME_OPTIONS
- name: Hall whistler waves
run: |
cd $IDEFIX_DIR/test/MHD/HallWhistler
./testme.py -all $TESTME_OPTIONS
Fargo:
needs: [Linter, ShocksHydro, ParabolicHydro, ShocksMHD, ParabolicMHD]
runs-on: self-hosted
steps:
- name: Check out repo
uses: actions/checkout@v3
with:
submodules: recursive
- name: Fargo + planet
run: |
cd $IDEFIX_DIR/test/HD/FargoPlanet
./testme.py -all $TESTME_OPTIONS
- name: Fargo MHD spherical
run: |
cd $IDEFIX_DIR/test/MHD/FargoMHDSpherical
./testme.py -all $TESTME_OPTIONS
ShearingBox:
needs: [Linter, ShocksHydro, ParabolicHydro, ShocksMHD, ParabolicMHD]
runs-on: self-hosted
steps:
- name: Check out repo
uses: actions/checkout@v3
with:
submodules: recursive
- name: Hydro shearing box
run: |
cd $IDEFIX_DIR/test/HD/ShearingBox
./testme.py -all $TESTME_OPTIONS
- name: MHD shearing box
run: |
cd $IDEFIX_DIR/test/MHD/ShearingBox
./testme.py -all $TESTME_OPTIONS
SelfGravity:
needs: [Linter, ShocksHydro, ParabolicHydro, ShocksMHD, ParabolicMHD]
runs-on: self-hosted
steps:
- name: Check out repo
uses: actions/checkout@v3
with:
submodules: recursive
- name: Jeans Instability
run: |
cd $IDEFIX_DIR/test/SelfGravity/JeansInstability
./testme.py -all $TESTME_OPTIONS
- name: Random sphere spherical
run: |
cd $IDEFIX_DIR/test/SelfGravity/RandomSphere
./testme.py -all $TESTME_OPTIONS
- name: Random sphere cartesian
run: |
cd $IDEFIX_DIR/test/SelfGravity/RandomSphereCartesian
./testme.py -all $TESTME_OPTIONS
- name: Uniform spherical collapse
run: |
cd $IDEFIX_DIR/test/SelfGravity/UniformCollapse
./testme.py -all $TESTME_OPTIONS
- name: Dusty spherical collapse
run: |
cd $IDEFIX_DIR/test/SelfGravity/DustyCollapse
./testme.py -all $TESTME_OPTIONS
Planet:
needs: [Linter, ShocksHydro, ParabolicHydro, ShocksMHD, ParabolicMHD]
runs-on: self-hosted
steps:
- name: Check out repo
uses: actions/checkout@v3
with:
submodules: recursive
- name: 3 body
run: |
cd $IDEFIX_DIR/test/Planet/Planet3Body
./testme.py -all $TESTME_OPTIONS
- name: migration
run: |
cd $IDEFIX_DIR/test/Planet/PlanetMigration2D
./testme.py -all $TESTME_OPTIONS
- name: planet-planet
run: |
cd $IDEFIX_DIR/test/Planet/PlanetPlanetRK42D
./testme.py -all $TESTME_OPTIONS
- name: spiral wake
run: |
cd $IDEFIX_DIR/test/Planet/PlanetSpiral2D
./testme.py -all $TESTME_OPTIONS
- name: torques
run: |
cd $IDEFIX_DIR/test/Planet/PlanetTorque3D
./testme.py -all $TESTME_OPTIONS
- name: RK5
run: |
cd $IDEFIX_DIR/test/Planet/PlanetsIsActiveRK52D
./testme.py -all $TESTME_OPTIONS
Dust:
needs: [Linter, ShocksHydro, ParabolicHydro, ShocksMHD, ParabolicMHD]
runs-on: self-hosted
steps:
- name: Check out repo
uses: actions/checkout@v3
with:
submodules: recursive
- name: Energy conservation
run: |
cd $IDEFIX_DIR/test/Dust/DustEnergy
./testme.py -all $TESTME_OPTIONS
- name: Dusty wave
run: |
cd $IDEFIX_DIR/test/Dust/DustyWave
./testme.py -all $TESTME_OPTIONS
Braginskii:
needs: [Linter, ShocksHydro, ParabolicHydro, ShocksMHD, ParabolicMHD]
runs-on: self-hosted
steps:
- name: Check out repo
uses: actions/checkout@v3
with:
submodules: recursive
- name: MTI
run: |
cd $IDEFIX_DIR/test/MHD/MTI
./testme.py -all $TESTME_OPTIONS
- name: Spherical anisotropic diffusion
run: |
cd $IDEFIX_DIR/test/MHD/sphBragTDiffusion
./testme.py -all $TESTME_OPTIONS
- name: Spherical anisotropic viscosity
run: |
cd $IDEFIX_DIR/test/MHD/sphBragViscosity
./testme.py -all $TESTME_OPTIONS
Examples:
needs: [Fargo, Dust, Planet, ShearingBox, SelfGravity]
runs-on: self-hosted
steps:
- name: Check out repo
uses: actions/checkout@v3
with:
submodules: recursive
- name: Run examples test
run: cd test && ./checks_examples.sh $TEST_OPTIONS
Utils:
needs: [Fargo, Dust, Planet, ShearingBox, SelfGravity]
runs-on: self-hosted
steps:
- name: Check out repo
uses: actions/checkout@v3
with:
submodules: recursive
- name: Lookup table
run: |
cd $IDEFIX_DIR/test/utils/lookupTable
./testme.py -all $TESTME_OPTIONS
- name: Dump Image
run: |
cd $IDEFIX_DIR/test/utils/dumpImage
./testme.py -all $TESTME_OPTIONS