Skip to content

Commit

Permalink
Merge pull request #886 from xylar/fix-conda-cache
Browse files Browse the repository at this point in the history
In CI, use a unique cache directory for each python version
  • Loading branch information
xylar authored Jan 15, 2025
2 parents 57072bf + cf5f6ec commit 36dc4bb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/build_workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ jobs:
strategy:
matrix:
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"]
fail-fast: false
steps:
- id: skip_check
uses: fkirc/skip-duplicate-actions@master
Expand All @@ -75,7 +76,7 @@ jobs:
# Increase this value to reset cache if conda-dev-spec.template has not changed in the workflow
CACHE_NUMBER: 0
with:
path: ~/conda_pkgs_dir
path: ~/conda_pkgs_dir_py${{ matrix.python-version }}
key:
${{ runner.os }}-${{ matrix.python-version }}-conda-${{ env.CACHE_NUMBER }}-${{
hashFiles('conda/configure_compass_env.py,conda/*,conda/compass_env/*') }}
Expand Down

0 comments on commit 36dc4bb

Please sign in to comment.