Skip to content

Commit

Permalink
Add conda cache for actions (#36)
Browse files Browse the repository at this point in the history
  • Loading branch information
stefmolin authored Oct 12, 2024
1 parent 4e0fb5a commit 86bfcf2
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/env-checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,16 @@ jobs:
else
sed -i -e '/- python[>=]/d' environment.yml;
fi;
- name: Cache conda
uses: actions/cache@3624ceb22c1c5a301c8db4169662070a689d9ea8 # v4.1.1
env:
# Increase this value to reset cache if environment.yml has not changed
CACHE_NUMBER: 0
with:
path: ~/conda_pkgs_dir
key:
${{ runner.os }}-${{ matrix.python-version }}-conda-${{ env.CACHE_NUMBER }}-${{ hashFiles('environment.yml') }}

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

0 comments on commit 86bfcf2

Please sign in to comment.