Skip to content

Commit db7eb13

Browse files
feat: cache pre-commit repository store
1 parent 40e438b commit db7eb13

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

.github/workflows/_build.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,12 @@ jobs:
6868
with:
6969
python-version: ${{ matrix.python }}
7070

71+
- name: Set up pre-commit cache
72+
uses: actions/cache@v3
73+
with:
74+
path: ~/.cache/pre-commit
75+
key: pre-commit|${{ matrix.os }}|${{ matrix.python }}|${{ hashFiles('.pre-commit-config.yaml') }}
76+
7177
# Using the Makefile assumes an activated virtual environment, which doesn't exist
7278
# when running in an Action environment (https://github.com/actions/setup-python/issues/359).
7379
# Instead we create an empty .venv folder so that the Makefile continues to function

0 commit comments

Comments
 (0)