Skip to content

Commit

Permalink
[ci] Update caching strategy for Conda packages
Browse files Browse the repository at this point in the history
  • Loading branch information
dmitry-kabanov committed Jan 8, 2025
1 parent a14e368 commit a95e4dd
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions .github/workflows/qa.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,16 @@ jobs:
id: get-date
run: echo "::set-output name=date::$(/bin/date -u "+%Y%m%d")"

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

- name: Update environment
run: |
Expand Down

0 comments on commit a95e4dd

Please sign in to comment.