Skip to content

Commit 4dd1f5a

Browse files
authored
Merge pull request #300 from idefix-code/test-ci
2 parents 579ceaa + 13c34d3 commit 4dd1f5a

4 files changed

Lines changed: 239 additions & 266 deletions

File tree

Lines changed: 203 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,203 @@
1+
on:
2+
workflow_call:
3+
inputs:
4+
TESTME_OPTIONS:
5+
required: true
6+
type: string
7+
IDEFIX_COMPILER:
8+
required: true
9+
type: string
10+
11+
# concurrency:
12+
# # auto-cancel any concurrent job *in the same context*
13+
# # see https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#concurrency
14+
# # see https://docs.github.com/en/actions/learn-github-actions/contexts#github-context
15+
# group: ${{ github.workflow }}-${{ github.ref }}
16+
# cancel-in-progress: true
17+
18+
env:
19+
IDEFIX_COMPILER: ${{ inputs.IDEFIX_COMPILER }}
20+
TESTME_OPTIONS: ${{ inputs.TESTME_OPTIONS }}
21+
PYTHONPATH: ${{ github.workspace }}
22+
IDEFIX_DIR: ${{ github.workspace }}
23+
24+
jobs:
25+
ShocksHydro:
26+
runs-on: self-hosted
27+
steps:
28+
- name: Check out repo
29+
uses: actions/checkout@v3
30+
with:
31+
submodules: recursive
32+
- name: Sod test
33+
run: scripts/ci/run-tests $IDEFIX_DIR/test/HD/sod -all $TESTME_OPTIONS
34+
- name: Isothermal Sod test
35+
run: scripts/ci/run-tests $IDEFIX_DIR/test/HD/sod-iso -all $TESTME_OPTIONS
36+
- name: Mach reflection test
37+
run: scripts/ci/run-tests $IDEFIX_DIR/test/HD//MachReflection -all $TESTME_OPTIONS
38+
39+
ParabolicHydro:
40+
runs-on: self-hosted
41+
steps:
42+
- name: Check out repo
43+
uses: actions/checkout@v3
44+
with:
45+
submodules: recursive
46+
- name: Viscous flow past cylinder
47+
run: scripts/ci/run-tests $IDEFIX_DIR/test/HD/ViscousFlowPastCylinder -all $TESTME_OPTIONS
48+
- name: Viscous disk
49+
run: scripts/ci/run-tests $IDEFIX_DIR/test/HD/ViscousDisk -all $TESTME_OPTIONS
50+
- name: Thermal diffusion
51+
run: scripts/ci/run-tests $IDEFIX_DIR/test/HD/thermalDiffusion -all $TESTME_OPTIONS
52+
53+
ShocksMHD:
54+
runs-on: self-hosted
55+
steps:
56+
- name: Check out repo
57+
uses: actions/checkout@v3
58+
with:
59+
submodules: recursive
60+
- name: MHD Sod test
61+
run: scripts/ci/run-tests $IDEFIX_DIR/test/MHD/sod -all $TESTME_OPTIONS
62+
- name: MHD Isothermal Sod test
63+
run: scripts/ci/run-tests $IDEFIX_DIR/test/MHD/sod-iso -all $TESTME_OPTIONS
64+
- name: Orszag Tang
65+
run: scripts/ci/run-tests $IDEFIX_DIR/test/MHD/OrszagTang -all $TESTME_OPTIONS
66+
- name: Orszag Tang 3D+restart tests
67+
run: scripts/ci/run-tests $IDEFIX_DIR/test/MHD/OrszagTang3D -all $TESTME_OPTIONS
68+
69+
ParabolicMHD:
70+
runs-on: self-hosted
71+
steps:
72+
- name: Check out repo
73+
uses: actions/checkout@v3
74+
with:
75+
submodules: recursive
76+
- name: Ambipolar C Shock
77+
run: scripts/ci/run-tests $IDEFIX_DIR/test/MHD/AmbipolarCshock -all $TESTME_OPTIONS
78+
- name: Ambipolar C Shock 3D
79+
run: scripts/ci/run-tests $IDEFIX_DIR/test/MHD/AmbipolarCshock3D -all $TESTME_OPTIONS
80+
- name: Resistive Alfvén wave
81+
run: scripts/ci/run-tests $IDEFIX_DIR/test/MHD/ResistiveAlfvenWave -all $TESTME_OPTIONS
82+
- name: Grid coarsening diffusion
83+
run: scripts/ci/run-tests $IDEFIX_DIR/test/MHD/Coarsening -all $TESTME_OPTIONS
84+
- name: Hall whistler waves
85+
run: scripts/ci/run-tests $IDEFIX_DIR/test/MHD/HallWhistler -all $TESTME_OPTIONS
86+
87+
Fargo:
88+
needs: [ShocksHydro, ParabolicHydro, ShocksMHD, ParabolicMHD]
89+
runs-on: self-hosted
90+
steps:
91+
- name: Check out repo
92+
uses: actions/checkout@v3
93+
with:
94+
submodules: recursive
95+
- name: Fargo + planet
96+
run: scripts/ci/run-tests $IDEFIX_DIR/test/HD/FargoPlanet -all $TESTME_OPTIONS
97+
- name: Fargo MHD spherical
98+
run: scripts/ci/run-tests $IDEFIX_DIR/test/MHD/FargoMHDSpherical -all $TESTME_OPTIONS
99+
100+
ShearingBox:
101+
needs: [ShocksHydro, ParabolicHydro, ShocksMHD, ParabolicMHD]
102+
runs-on: self-hosted
103+
steps:
104+
- name: Check out repo
105+
uses: actions/checkout@v3
106+
with:
107+
submodules: recursive
108+
- name: Hydro shearing box
109+
run: scripts/ci/run-tests $IDEFIX_DIR/test/HD/ShearingBox -all $TESTME_OPTIONS
110+
- name: MHD shearing box
111+
run: scripts/ci/run-tests $IDEFIX_DIR/test/MHD/ShearingBox -all $TESTME_OPTIONS
112+
113+
SelfGravity:
114+
needs: [ShocksHydro, ParabolicHydro, ShocksMHD, ParabolicMHD]
115+
runs-on: self-hosted
116+
steps:
117+
- name: Check out repo
118+
uses: actions/checkout@v3
119+
with:
120+
submodules: recursive
121+
- name: Jeans Instability
122+
run: scripts/ci/run-tests $IDEFIX_DIR/test/SelfGravity/JeansInstability -all $TESTME_OPTIONS
123+
- name: Random sphere spherical
124+
run: scripts/ci/run-tests $IDEFIX_DIR/test/SelfGravity/RandomSphere -all $TESTME_OPTIONS
125+
- name: Random sphere cartesian
126+
run: scripts/ci/run-tests $IDEFIX_DIR/test/SelfGravity/RandomSphereCartesian -all $TESTME_OPTIONS
127+
- name: Uniform spherical collapse
128+
run: scripts/ci/run-tests $IDEFIX_DIR/test/SelfGravity/UniformCollapse -all $TESTME_OPTIONS
129+
- name: Dusty spherical collapse
130+
run: scripts/ci/run-tests $IDEFIX_DIR/test/SelfGravity/DustyCollapse -all $TESTME_OPTIONS
131+
132+
Planet:
133+
needs: [ShocksHydro, ParabolicHydro, ShocksMHD, ParabolicMHD]
134+
runs-on: self-hosted
135+
steps:
136+
- name: Check out repo
137+
uses: actions/checkout@v3
138+
with:
139+
submodules: recursive
140+
- name: 3 body
141+
run: scripts/ci/run-tests $IDEFIX_DIR/test/Planet/Planet3Body -all $TESTME_OPTIONS
142+
- name: migration
143+
run: scripts/ci/run-tests $IDEFIX_DIR/test/Planet/PlanetMigration2D -all $TESTME_OPTIONS
144+
- name: planet-planet
145+
run: scripts/ci/run-tests $IDEFIX_DIR/test/Planet/PlanetPlanetRK42D -all $TESTME_OPTIONS
146+
- name: spiral wake
147+
run: scripts/ci/run-tests $IDEFIX_DIR/test/Planet/PlanetSpiral2D -all $TESTME_OPTIONS
148+
- name: torques
149+
run: scripts/ci/run-tests $IDEFIX_DIR/test/Planet/PlanetTorque3D -all $TESTME_OPTIONS
150+
- name: RK5
151+
run: scripts/ci/run-tests $IDEFIX_DIR/test/Planet/PlanetsIsActiveRK52D -all $TESTME_OPTIONS
152+
153+
Dust:
154+
needs: [ShocksHydro, ParabolicHydro, ShocksMHD, ParabolicMHD]
155+
runs-on: self-hosted
156+
steps:
157+
- name: Check out repo
158+
uses: actions/checkout@v3
159+
with:
160+
submodules: recursive
161+
- name: Energy conservation
162+
run: scripts/ci/run-tests $IDEFIX_DIR/test/Dust/DustEnergy -all $TESTME_OPTIONS
163+
- name: Dusty wave
164+
run: scripts/ci/run-tests $IDEFIX_DIR/test/Dust/DustyWave -all $TESTME_OPTIONS
165+
166+
Braginskii:
167+
needs: [ShocksHydro, ParabolicHydro, ShocksMHD, ParabolicMHD]
168+
runs-on: self-hosted
169+
steps:
170+
- name: Check out repo
171+
uses: actions/checkout@v3
172+
with:
173+
submodules: recursive
174+
- name: MTI
175+
run: scripts/ci/run-tests $IDEFIX_DIR/test/MHD/MTI -all $TESTME_OPTIONS
176+
- name: Spherical anisotropic diffusion
177+
run: scripts/ci/run-tests $IDEFIX_DIR/test/MHD/sphBragTDiffusion -all $TESTME_OPTIONS
178+
- name: Spherical anisotropic viscosity
179+
run: scripts/ci/run-tests $IDEFIX_DIR/test/MHD/sphBragViscosity -all $TESTME_OPTIONS
180+
181+
Examples:
182+
needs: [Fargo, Dust, Planet, ShearingBox, SelfGravity]
183+
runs-on: self-hosted
184+
steps:
185+
- name: Check out repo
186+
uses: actions/checkout@v3
187+
with:
188+
submodules: recursive
189+
- name: Run examples test
190+
run: cd test && ./checks_examples.sh $TEST_OPTIONS
191+
192+
Utils:
193+
needs: [Fargo, Dust, Planet, ShearingBox, SelfGravity]
194+
runs-on: self-hosted
195+
steps:
196+
- name: Check out repo
197+
uses: actions/checkout@v3
198+
with:
199+
submodules: recursive
200+
- name: Lookup table
201+
run: scripts/ci/run-tests $IDEFIX_DIR/test/utils/lookupTable -all $TESTME_OPTIONS
202+
- name: Dump Image
203+
run: scripts/ci/run-tests $IDEFIX_DIR/test/utils/dumpImage -all $TESTME_OPTIONS

0 commit comments

Comments
 (0)