Skip to content

Commit b7c19db

Browse files
[ci] Update caching strategy for Conda packages
1 parent 8d18e91 commit b7c19db

File tree

1 file changed

+10
-6
lines changed

1 file changed

+10
-6
lines changed

.github/workflows/qa.yaml

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -32,12 +32,16 @@ jobs:
3232
id: get-date
3333
run: echo "::set-output name=date::$(/bin/date -u "+%Y%m%d")"
3434

35-
# - name: Cache Conda env
36-
# uses: actions/cache@v3
37-
# with:
38-
# path: ~/conda_pkgs_dir
39-
# key: ${{ runner.os }}-conda-${{ env.CACHE_NUMBER }}-${{ hashFiles('environment-linux.yaml') }}
40-
# id: cache
35+
- name: Cache Conda env
36+
uses: actions/cache@v3
37+
env:
38+
# Increase this value to reset cache
39+
# if etc/example-environment.yml has not changed.
40+
CACHE_NUMBER: 0
41+
with:
42+
path: ~/conda_pkgs_dir
43+
key: ${{ runner.os }}-python-${{ matrix.python-version }}-conda-${{ env.CACHE_NUMBER }}-${{ hashFiles('environment-linux.yaml') }}
44+
id: cache
4145

4246
- name: Update environment
4347
run: |

0 commit comments

Comments
 (0)