Skip to content

Commit 241c29d

Browse files
committed
👷⚡️ Cache pre-commit hooks in CI workflow
1 parent 9837706 commit 241c29d

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

.github/workflows/uv-tests.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,5 +47,12 @@ jobs:
4747
run: |
4848
git config --global user.email "${{ github.actor }}@users.noreply.github.com"
4949
git config --global user.name "${{ github.actor }}"
50+
- name: Cache pre-commit
51+
uses: actions/cache@v4
52+
with:
53+
path: ~/.cache/pre-commit
54+
key: pre-commit-${{ runner.os }}-${{ hashFiles('.pre-commit-config.yaml', 'project_name/.pre-commit-config.yaml.jinja') }}
55+
restore-keys: |
56+
pre-commit-${{ runner.os }}-
5057
- name: Run copier-template-tester
5158
run: uv run ctt

0 commit comments

Comments
 (0)