-
Notifications
You must be signed in to change notification settings - Fork 12
48 lines (37 loc) · 1.61 KB
/
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
name: CI
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
check-final-image:
runs-on: ubuntu-latest
steps:
- name: Check if final Docker image exists on Docker Hub
id: check-final-image
run: |
if docker pull plasmapotential/heat:v4.1; then
echo "Image exists on Docker Hub."
else
echo "::error ::Final HEAT Docker image v4.1 does not exist."
exit 1
fi
test:
needs: check-final-image
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Pull Docker image
run: docker pull plasmapotential/heat:v4.1
- name: Run simple CI configuration test
run: docker run -v ${{ github.workspace }}:/root/source/HEAT plasmapotential/heat:v4.1 python3 /root/source/HEAT/tests/integrationTests/ciTest.py
- name: NSTX-U Optical HEAT Calculation
run: docker run -v ${{ github.workspace }}:/root/source/HEAT plasmapotential/heat:v4.1 /root/source/HEAT/source/runTerminalModeTestOptical
- name: NSTX-U Optical Elmer FEM HEAT Calculation
run: docker run -v ${{ github.workspace }}:/root/source/HEAT plasmapotential/heat:v4.1 /root/source/HEAT/source/runTerminalModeTestOpticalElmer
# - name: NSTX-U Gyro-orbit HEAT Calculation
# run: docker run -v ${{ github.workspace }}:/root/source/HEAT plasmapotential/heat:v4.0 /root/source/HEAT/source/runTerminalModeTestGyro
#
# - name: NSTX-U Photon Radiation HEAT Calculation
# run: docker run -v ${{ github.workspace }}:/root/source/HEAT plasmapotential/heat:v4.0 /root/source/HEAT/source/runTerminalModeTestRad