Skip to content

exit is complicated

exit is complicated #2

Workflow file for this run

on:
workflow_call:
inputs:
compiler:
type: string
required: true
jobs:
test:
if: always()
env:
CC: mpicc
FC: mpifort
CXX: mpicxx
CIME_MODEL: cesm
CIME_DRIVER: nuopc
# needs: setup
runs-on: hpc-runner
defaults:
run:
shell: /usr/bin/bash -ex {0}
steps:
- name: Run ${{ inputs.compiler }} tests
continue-on-error: true
run: |
pwd
cd cime/scripts
module load cmake
qcmd -q main -v PROJECT=P93300606 -A P93300606 -l walltime=02:00:00 -- ./create_test --xml-machine derecho\
--xml-category github2 --no-run --compiler ${{ inputs.compiler }} --test-id ${GITHUB_RUN_ID}${{ inputs.compiler }}
- name: check status
run: |

Check failure on line 33 in .github/workflows/build.yaml

View workflow run for this annotation

GitHub Actions / .github/workflows/build.yaml

Invalid workflow file

You have an error in your yaml syntax on line 33
cd $SCRATCH
# if no fails and no passes in expected fails then exit 0 otherwise exit 1
./cs.status.${GITHUB_RUN_ID}${{ inputs.compiler }} --expected-fails-file $GITHUB_WORKSPACE/cime_config/testfiles/ExpectedTestFails.xml | grep FAIL | grep -v FAILURE || exit 0
exit 1