Skip to content

Commit 82f59e6

Browse files
committed
Test recipe in CI
1 parent 5ce360a commit 82f59e6

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

.github/workflows/recipes.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: Test recipes
2+
3+
on:
4+
push:
5+
pull_request:
6+
7+
jobs:
8+
build:
9+
runs-on: ubuntu-20.04
10+
steps:
11+
- uses: actions/checkout@v2
12+
- name: Install esmvaltool
13+
run: conda create -n esmvaltool -c esmvalgroup -c conda-forge esmvaltool-python
14+
- name: Activate esmvaltool conda env
15+
run: conda activate esmvaltool
16+
- name: Setup config
17+
run: |
18+
esmvaltool config get_config_user
19+
patch ~/.esmvaltool/config-user.yml << EOF
20+
44c44
21+
< #rootpath:
22+
---
23+
> rootpath:
24+
48c48
25+
< # default: ~/default_inputpath
26+
---
27+
> default: ~/default_inputpath
28+
EOF
29+
- name: Download dataset files for data/recipe_example.yml
30+
run: |
31+
head -4 data/dataset.urls |grep -v '#' | wget --input-file - --no-clobber --directory-prefix $HOME/default_inputpath/
32+
- name: Run data/recipe_example.yml
33+
run: esmvaltool run $PWD/data/recipe_example.yml

0 commit comments

Comments
 (0)