forked from NOAA-EMC/GDASApp
-
Notifications
You must be signed in to change notification settings - Fork 0
75 lines (63 loc) · 2.08 KB
/
unittests_g-w.yaml
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: Unit Tests Within NCEP Global-Workflow
on: [push, pull_request]
jobs:
ctests:
runs-on: ubuntu-latest
name: Run Unit Tests inside global-workflow with ctest
steps:
- name: Install pip dependencies
run: |
pip install --upgrade pip
pip install pycodestyle
pip install netCDF4
pip install xarray
- name: Install other dependencies
run: |
wget https://ftp.emc.ncep.noaa.gov/static_files/public/GDASApp/r2d2-bb361c2.tar.gz
wget https://ftp.emc.ncep.noaa.gov/static_files/public/GDASApp/solo-877b414.tar.gz
tar -xvf r2d2-bb361c2.tar.gz
tar -xvf solo-877b414.tar.gz
cd solo && pip install . && cd ..
cd r2d2 && pip install . && cd ..
sudo mkdir -p /work/noaa # to trick workflow into thinking this is RDHPCS Orion
- name: Checkout wxflow
uses: actions/checkout@v3
with:
repository: NOAA-EMC/wxflow
ref: develop
path: wxflow
- name: Install wxflow
run: |
cd wxflow
pip install .
- name: Checkout workflow
uses: actions/checkout@v3
with:
repository: NOAA-EMC/global-workflow
ref: develop
path: global-workflow
- name: Checkout GDASApp
uses: actions/checkout@v3
with:
path: global-workflow/sorc/gdas.cd
- name: Install ecBuild
run: |
git clone https://github.com/ecmwf/ecbuild.git ecbuild
cd ecbuild
git checkout 3.6.1
mkdir bootstrap
cd bootstrap
../bin/ecbuild ..
sudo make install
- name: Configure with cmake
run: |
mkdir $GITHUB_WORKSPACE/global-workflow/sorc/gdas.cd/build && cd $GITHUB_WORKSPACE/global-workflow/sorc/gdas.cd/build
cmake -DBUILD_GDASBUNDLE=OFF -DWORKFLOW_TESTS=ON $GITHUB_WORKSPACE/global-workflow/sorc/gdas.cd/
- name: Build GDASApp
run: |
cd $GITHUB_WORKSPACE/global-workflow/sorc/gdas.cd/build
make
- name: Run ctest
run: |
cd $GITHUB_WORKSPACE/global-workflow/sorc/gdas.cd/build
ctest --output-on-failure