Skip to content

Commit

Permalink
Merge pull request #599 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 c6ecfa6 + 9dcd8f4 commit fce7b36
Show file tree
Hide file tree
Showing 2 changed files with 5 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 @@ -44,7 +44,7 @@ jobs:
# Increase this value to reset cache if dev-spec and setup.py have 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_package/dev-spec.txt,conda_package/setup.py') }}
Expand Down
5 changes: 4 additions & 1 deletion .github/workflows/docs_workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ on:
release:
types: [published]

env:
PYTHON_VERSION: "3.10"

jobs:
publish-docs:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -40,7 +43,7 @@ jobs:
channels: conda-forge
channel-priority: strict
auto-update-conda: true
python-version: ${{ matrix.python-version }}
python-version: ${{ env.PYTHON_VERSION }}

- if: ${{ steps.skip_check.outputs.should_skip != 'true' }}
name: Install mpas_tools
Expand Down

0 comments on commit fce7b36

Please sign in to comment.