Skip to content

Commit 86bfcf2

Browse files
authored
Add conda cache for actions (#36)
1 parent 4e0fb5a commit 86bfcf2

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

.github/workflows/env-checks.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,16 @@ jobs:
5757
else
5858
sed -i -e '/- python[>=]/d' environment.yml;
5959
fi;
60+
61+
- name: Cache conda
62+
uses: actions/cache@3624ceb22c1c5a301c8db4169662070a689d9ea8 # v4.1.1
63+
env:
64+
# Increase this value to reset cache if environment.yml has not changed
65+
CACHE_NUMBER: 0
66+
with:
67+
path: ~/conda_pkgs_dir
68+
key:
69+
${{ runner.os }}-${{ matrix.python-version }}-conda-${{ env.CACHE_NUMBER }}-${{ hashFiles('environment.yml') }}
6070

6171
# create the conda env
6272
- uses: conda-incubator/setup-miniconda@a4260408e20b96e80095f42ff7f1a15b27dd94ca # v3.0.4

0 commit comments

Comments
 (0)