File tree Expand file tree Collapse file tree 1 file changed +23
-1
lines changed
Expand file tree Collapse file tree 1 file changed +23
-1
lines changed Original file line number Diff line number Diff line change 99 runs-on : ubuntu-20.04
1010 steps :
1111 - uses : actions/checkout@v2
12+ - name : Cache conda
13+ uses : actions/cache@v1
14+ env :
15+ # Increase this value to reset cache if data/recipe_example.yml has not changed
16+ CACHE_NUMBER : 0
17+ with :
18+ path : ~/conda_pkgs_dir
19+ key : ${{ runner.os }}-conda-${{ env.CACHE_NUMBER }}-${{ hashFiles('data/recipe_example.yml') }}
1220 - uses : goanpeca/setup-miniconda@v1
1321 - name : Install esmvaltool
14- run : conda install -c esmvalgroup -c conda-forge esmvaltool-python
22+ run : conda install -y -c esmvalgroup -c conda-forge esmvaltool-python
23+ - name : Debug
24+ run :
25+ echo $CONDA
26+ echo $PATH
27+ ls $CONDA/envs/test/bin
28+ which esmvaltool
1529 - name : Setup config
1630 run : |
1731 esmvaltool config get_config_user
2539 ---
2640 > default: ~/default_inputpath
2741 EOF
42+ - name : Cache datasets
43+ uses : actions/cache@v1
44+ env :
45+ # Increase this value to reset cache if data/dataset.urls has not changed
46+ CACHE_NUMBER : 0
47+ with :
48+ path : ~/default_inputpath
49+ key : ${{ runner.os }}-datasets-${{ env.CACHE_NUMBER }}-${{ hashFiles('data/dataset.urls') }}
2850 - name : Download dataset files for data/recipe_example.yml
2951 run : |
3052 head -4 data/dataset.urls |grep -v '#' | wget --input-file - --no-clobber --directory-prefix $HOME/default_inputpath/
You can’t perform that action at this time.
0 commit comments