Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pace build optional CI #1460

Merged
merged 8 commits into from
Dec 12, 2023
53 changes: 53 additions & 0 deletions .github/workflows/pace-build-ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
name: NASA/NOAA Pace repository build test

on:
workflow_dispatch:

defaults:
run:
shell: bash

jobs:
build_pace:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.8.10]

steps:
- uses: actions/checkout@v2
with:
repository: '[email protected]:GEOS-ESM/pace.git'
ref: 911368
submodules: 'recursive'
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies & pull correct DaCe
run: |
cd pace
python -m pip install --upgrade pip
pip install -e external/gt4py
pip install -e external/dace
pip install -r requirements_dev.txt
cd external/dace
git checkout ${{ github.sha }}
cd ../..
- name: Download data
run: |
cd pace
mkdir -p test_data
cd test_data
wget https://portal.nccs.nasa.gov/datashare/astg/smt/pace-regression-data/8.1.3_c12_6_ranks_standard.Remapping.tar.gz
tar -xzvf 8.1.3_c12_6_ranks_standard.Remapping.tar.gz
cd ../..
- name: Run regression test of Remapping
run: |
export FV3_DACEMODE=BuildAndRun
export PACE_CONSTANTS=GFS
cd pace
pytest -v -s --data_path=./test_data/8.1.3/c12_6ranks_standard/dycore \
--backend=dace:cpu --which_modules=Remapping --which_rank=0 \
--threshold_overrides_file=./fv3core/tests/savepoint/translate/overrides/standard.yaml \
./fv3core/tests/savepoint