v4.1: Elmer, M3DC1 fusion-io, docker clones, docker staged builds #33
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | |