-
Notifications
You must be signed in to change notification settings - Fork 11
59 lines (59 loc) · 2.47 KB
/
hrrr_maps_tests.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
name: hrrr_maps_tests
env:
data_loc: ${{ github.workspace }}/input_data
output_loc: ${{ github.workspace }}/output
on:
push:
branches:
- main
pull_request:
branches:
- main
workflow_dispatch:
jobs:
test_hrrr_maps:
runs-on: ubuntu-latest
defaults:
run:
shell: bash -l {0}
steps:
- name: Checkout repo
uses: actions/checkout@v3
- name: Create data and output folders
run: |
mkdir -p $output_loc
mkdir -p $data_loc
- name: Fetch Grib Files
run: |
wget -N -P $data_loc -i - << EOF
https://noaa-hrrr-bdp-pds.s3.amazonaws.com/hrrr.20230315/conus/hrrr.t00z.wrfprsf00.grib2
https://noaa-hrrr-bdp-pds.s3.amazonaws.com/hrrr.20230315/conus/hrrr.t00z.wrfprsf01.grib2
https://noaa-hrrr-bdp-pds.s3.amazonaws.com/hrrr.20230315/conus/hrrr.t00z.wrfprsf02.grib2
https://noaa-hrrr-bdp-pds.s3.amazonaws.com/hrrr.20230315/conus/hrrr.t00z.wrfprsf03.grib2
https://noaa-hrrr-bdp-pds.s3.amazonaws.com/hrrr.20230315/conus/hrrr.t00z.wrfprsf04.grib2
https://noaa-hrrr-bdp-pds.s3.amazonaws.com/hrrr.20230315/conus/hrrr.t00z.wrfprsf05.grib2
https://noaa-hrrr-bdp-pds.s3.amazonaws.com/hrrr.20230315/conus/hrrr.t00z.wrfprsf06.grib2
https://noaa-hrrr-bdp-pds.s3.amazonaws.com/hrrr.20230315/conus/hrrr.t00z.wrfprsf07.grib2
https://noaa-hrrr-bdp-pds.s3.amazonaws.com/hrrr.20230315/conus/hrrr.t00z.wrfprsf08.grib2
https://noaa-hrrr-bdp-pds.s3.amazonaws.com/hrrr.20230315/conus/hrrr.t00z.wrfprsf09.grib2
https://noaa-hrrr-bdp-pds.s3.amazonaws.com/hrrr.20230315/conus/hrrr.t00z.wrfprsf10.grib2
https://noaa-hrrr-bdp-pds.s3.amazonaws.com/hrrr.20230315/conus/hrrr.t00z.wrfprsf11.grib2
https://noaa-hrrr-bdp-pds.s3.amazonaws.com/hrrr.20230315/conus/hrrr.t00z.wrfprsf12.grib2
EOF
ls
- name: Install Micromamba with no environment
uses: mamba-org/provision-with-micromamba@main
with:
environment-file: false
channel-priority: flexible
cache-downloads: true
cache-env: true
- name: Install pygraf environment
run: micromamba create -n pygraf -y -f /home/runner/work/pygraf/pygraf/environment.yml
- name: Test code
run: |
micromamba activate pygraf
export GITHUB_WORKSPACE=$(pwd)
export $data_loc
export $output_loc
python -m pytest tests/test_hrrr_maps.py