Skip to content

Commit c35c18c

Browse files
committed
More cache + debug step
1 parent dd32da4 commit c35c18c

File tree

1 file changed

+23
-1
lines changed

1 file changed

+23
-1
lines changed

.github/workflows/recipes.yml

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,23 @@ jobs:
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
@@ -25,6 +39,14 @@ jobs:
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/

0 commit comments

Comments
 (0)