-
Notifications
You must be signed in to change notification settings - Fork 0
75 lines (71 loc) · 2.99 KB
/
pace-build-ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
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: 'git@github.com:GEOS-ESM/pace.git'
ref: 'ci/DaCe'
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 wheel setuptools
cd external/dace
git checkout ${{ github.sha }}
cd ../..
pip install -e external/gt4py
pip install -e external/dace
pip install -r requirements_dev.txt
- 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.D_SW.tar.gz
tar -xzvf 8.1.3_c12_6_ranks_standard.D_SW.tar.gz
wget https://portal.nccs.nasa.gov/datashare/astg/smt/pace-regression-data/8.1.3_c12_6_ranks_standard.RiemSolverC.tar.gz
tar -xzvf 8.1.3_c12_6_ranks_standard.RiemSolverC.tar.gz
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: "Regression test: Riemman Solver on C-grid"
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=Riem_Solver_C \
--threshold_overrides_file=./fv3core/tests/savepoint/translate/overrides/standard.yaml \
./fv3core/tests/savepoint
- name: "Regression test: D-grid shallow water lagrangian dynamics (D_SW)"
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=D_SW \
--threshold_overrides_file=./fv3core/tests/savepoint/translate/overrides/standard.yaml \
./fv3core/tests/savepoint
- name: "Regression test: Remapping (on rank 0 only)"
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