cache full data folder and cutouts

This commit is contained in:
Fabian Neumann 2022-03-24 14:07:44 +01:00
parent d24b9a4883
commit 273ac5a192

View File

@ -18,7 +18,7 @@ on:
env:
CONDA_CACHE_NUMBER: 1 # Change this value to manually reset the environment cache
BUNDLE_CACHE_NUMBER: 1
DATA_CACHE_NUMBER: 1
jobs:
build:
@ -66,11 +66,13 @@ jobs:
activate-environment: pypsa-eur
use-mamba: true
- name: Cache data bundle
- name: Cache data and cutouts folders
uses: actions/cache@v3
with:
path: data/bundle
key: data-bundle-${{ env.BUNDLE_CACHE_NUMBER }}
path: |
data
cutouts
key: data-cutouts-${{ env.DATA_CACHE_NUMBER }}
- name: Set cache date
run: echo "DATE=$(date +'%Y%m%d')" >> $GITHUB_ENV