Skip to content

Commit bf1e97d

Browse files
committed
Use the cache action
1 parent 4b93f4d commit bf1e97d

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

.github/workflows/ci_tests.yaml

+10
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,16 @@ jobs:
6969
# fecth all history so that setuptools-scm works
7070
fetch-depth: 0
7171

72+
- name: Cache conda
73+
uses: actions/cache@v1
74+
env:
75+
# Increase this value to reset cache if etc/example-environment.yml has not changed
76+
CACHE_NUMBER: 0
77+
with:
78+
path: ~/conda_pkgs_dir
79+
key:
80+
${{ runner.os }}-conda-${{ env.CACHE_NUMBER }}-${{ hashFiles('environment.yml') }}
81+
7282
# Install Mambaforge with conda-forge dependencies
7383
- name: Setup Mambaforge
7484
uses: conda-incubator/setup-miniconda@2fc91a2ef82dfb50ded2d80e56f83b7039ba5955

0 commit comments

Comments
 (0)