-
Notifications
You must be signed in to change notification settings - Fork 374
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
64 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
name: test | ||
|
||
on: | ||
pull_request: | ||
branches: [ master ] | ||
|
||
workflow_dispatch: | ||
|
||
jobs: | ||
|
||
run: | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
res: ["ne4pg2_oQU480"] | ||
com: ["F2010"] | ||
typ: | ||
- "SMS" # 0h20m | ||
- "SMS_D" # 0h30m | ||
- "REP" # 0h30m | ||
- "ERS" # 1h00m | ||
- "ERP" # 1h15m | ||
- "ERR" # 1h00m | ||
- "PET" # 0h35m | ||
- "PEM" # 0h45m | ||
- "SEQ" # 3h10m | ||
- "ERI" # Exception from case_test: [Errno 2] No such file or directory: | ||
- "ERT" # Exception from case_test: ERROR: No variable AVG_HIST_N found in case | ||
- "PEA" # ERROR: BUILD FAIL: build e3sm failed | ||
runs-on: ubuntu-latest | ||
container: | ||
image: ghcr.io/mahf708/e3sm-imgs:v0.0.6 | ||
|
||
steps: | ||
- | ||
name: Checkout | ||
uses: actions/checkout@v4 | ||
with: | ||
show-progress: false | ||
submodules: recursive | ||
- | ||
name: CIME | ||
working-directory: cime/scripts | ||
# the following combos currently fail, so let's mark them nbd: true --> ci remains green despite fail | ||
# typ: "ERI" # Exception from case_test: [Errno 2] No such file or directory: (no file in archive) | ||
# typ: "ERT" # Exception from case_test: ERROR: No variable AVG_HIST_N found in case (before run) | ||
# typ: "PEA" # ERROR: BUILD FAIL: build e3sm failed (MPI-related, self) | ||
continue-on-error: ${{ matrix.typ == 'ERI' || matrix.typ == 'ERT' || matrix.typ == 'PEA' }} | ||
# Note we force _P3 in the create_test call for now | ||
run: | | ||
mkdir -p $HOME/projects/e3sm/cesm-inputdata/atm/cam/physprops/ | ||
wget https://web.lcrc.anl.gov/public/e3sm/inputdata/atm/cam/physprops/p3_lookup_table_1.dat-v4.1.2 | ||
mv p3_lookup_table_1.dat-v4.1.2 $HOME/projects/e3sm/cesm-inputdata/atm/cam/physprops/ | ||
export USER=test | ||
./create_test ${{ matrix.typ }}_P3.${{ matrix.res }}.${{ matrix.com }} --machine singularity --wait --debug | ||
- | ||
name: Artifacts | ||
uses: actions/upload-artifact@v4 | ||
if: ${{ always() }} | ||
with: | ||
name: ${{ matrix.typ }}_P3.${{ matrix.res }}.${{ matrix.com }} | ||
# Wildcard pattern to upload logs (can add more if desired) | ||
path: | | ||
~/projects/e3sm/scratch/**/*log.* |