Skip to content

Commit

Permalink
Add restore-keys to caches (#560)
Browse files Browse the repository at this point in the history
  • Loading branch information
KapJI authored Sep 9, 2024
1 parent b633262 commit 0be09b4
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@ jobs:
with:
path: ./.venv
key: venv-${{ hashFiles('poetry.lock') }}
restore-keys: |
venv-
- uses: actions/cache@v4
name: Cache pre-commit hooks
Expand All @@ -47,6 +49,9 @@ jobs:
steps.setup-python.outputs.python-version,
hashFiles('.pre-commit-config.yaml')
) }}
restore-keys: |
pre-commit-${{ steps.setup-python.outputs.python-version }}-
pre-commit-
- name: Install dependencies with Poetry
if: steps.cache-poetry-deps.outputs.cache-hit != 'true'
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@ jobs:
with:
path: ./.venv
key: venv-${{ hashFiles('poetry.lock') }}
restore-keys: |
venv-
- name: Install dependencies with Poetry
if: steps.cache-poetry-deps.outputs.cache-hit != 'true'
Expand Down

0 comments on commit 0be09b4

Please sign in to comment.