Skip to content

Commit

Permalink
[REF] .github: Update actions cache and fix pre-commit cache path (#489)
Browse files Browse the repository at this point in the history
  • Loading branch information
moylop260 committed Mar 27, 2024
1 parent 72f2862 commit 24d53bc
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@ on:
pull_request:
branches:
- main

env:
CACHE_VERSION: 1
PRE_COMMIT_CACHE: ~/.cache/pre-commit

jobs:
test:
runs-on: ${{ matrix.os }}
Expand Down Expand Up @@ -35,9 +40,9 @@ jobs:
git config --global core.autocrlf false
- name: Cache pre-commit packages
id: cache-pre-commit
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: ~/.cache/pre-commit
path: ${{ env.PRE_COMMIT_CACHE }}
key: ${{ runner.os }}-py${{ matrix.python }}-pre-commit
- uses: actions/checkout@v4.1.2
with:
Expand Down

0 comments on commit 24d53bc

Please sign in to comment.