Skip to content

v4.1: Elmer, M3DC1 fusion-io, docker clones, docker staged builds #29

v4.1: Elmer, M3DC1 fusion-io, docker clones, docker staged builds

v4.1: Elmer, M3DC1 fusion-io, docker clones, docker staged builds #29

Workflow file for this run

name: CI
on:
push:
branches: [ v4.1 ]
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