Skip to content

move add-pass-label step as a job #181

move add-pass-label step as a job

move add-pass-label step as a job #181

Workflow file for this run

name: mom6_obgc_1d
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
container:
image: clouden90/1d_mom6_cobalt:base
options: --user=root
env:
PR_NUMBER: ${{ github.event.number }}
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 1
submodules: recursive
- name: Build mom6-sis2-cobalt
working-directory: ./builds
run: |
apt update; apt install -y wget
echo "build mom6-sis2-cobalt ..."
./linux-build.bash -m docker -p linux-gnu -t debug -f mom6sis2
- name: Download 1d model dataset
working-directory: ./exps
run: |
wget -q ftp.gfdl.noaa.gov:/pub/Yi-cheng.Teng/1d_ci_datasets.tar.gz && tar -zxvf 1d_ci_datasets.tar.gz && rm -rf 1d_ci_datasets.tar.gz
- name: Run 1D toy case and check repro across restarts
working-directory: ./exps/OM4.single_column.COBALT
run: |
./driver.sh
- name: Check ref
working-directory: ./exps/OM4.single_column.COBALT
run: |
echo "new 48hrs ocean.stats: "
cat ./RESTART_48hrs/ocean.stats
echo "baseline 48 hrs ocean.stats: "
cat ./ref/ocean.stats
diff -q ref/ocean.stats ./RESTART_48hrs/ocean.stats > /dev/null || { echo "Error: ocean.stats are different."; echo "Plz update exps/OM4.single_column.COBALT/ref/ocean.stats with the following: "; cat ./RESTART_48hrs/ocean.stats; exit 1; }