File tree Expand file tree Collapse file tree 1 file changed +33
-0
lines changed
Expand file tree Collapse file tree 1 file changed +33
-0
lines changed Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments