Skip to content

Commit

Permalink
Merge pull request #79 from altheaden/fix-conda-cache
Browse files Browse the repository at this point in the history
Use separate conda cache directories in CI
  • Loading branch information
xylar authored Jan 17, 2025
2 parents 73c3cca + a6eb4bf commit 7d164ac
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build_workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ jobs:
# Increase this value to reset cache if dev-spec.txt 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('dev-spec.txt') }}
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/pre_commit_update_workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ on:

env:
UP_TO_DATE: false
PYTHON_VERSION: "3.10"

jobs:
auto-update:
Expand All @@ -22,7 +23,7 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.10"
python-version: ${{ env.PYTHON_VERSION }}

- name: Install pre-commit
run: pip install pre-commit
Expand Down

0 comments on commit 7d164ac

Please sign in to comment.