Skip to content

Commit

Permalink
Update cobalt_ci.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
yichengt900 authored Dec 22, 2023
1 parent bd2705c commit 2f3b325
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/cobalt_ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,9 @@ jobs:
# Install wget and get data
- name: Install wget and get data
run: |
apt update
apt install -y wget
add-apt-repository ppa:remik-ziemlinski/nccmp
apt-get update
apt-get install -y wget nccmp
cd /opt
wget https://gfdl-med.s3.amazonaws.com/OceanBGC_dataset/1d_datasets.tar.gz
tar -zxvf 1d_datasets.tar.gz
Expand Down Expand Up @@ -67,4 +68,5 @@ jobs:
cd ../MOM6_OBGC_examples/exps/OM4.single_column.COBALT.p4
# check
diff -q ref/ocean.stats ./ocean.stats > /dev/null || { echo "Error: ocean.stats are different. Exiting..."; exit 1; }
diff -q ref/MOM.res.nc ./RESTART/MOM.res.nc > /dev/null || { echo "Error: MOM.res.nc are different. Exiting..."; exit 1; }
#diff -q ref/MOM.res.nc ./RESTART/MOM.res.nc > /dev/null || { echo "Error: MOM.res.nc are different. Exiting..."; exit 1; }
nccmp -dfqS ref/MOM.res.nc ./RESTART/MOM.res.nc || { echo "Error: MOM.res.nc are different. Exiting..."; exit 1; }

0 comments on commit 2f3b325

Please sign in to comment.