Skip to content

Commit bc3bcfa

Browse files
committed
CI: add cache for pre-commit
1 parent 4275922 commit bc3bcfa

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

.github/workflows/ci.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,13 @@ jobs:
2828
path: .venv
2929
key: venv-v1-test-${{ runner.os }}-${{ steps.setup_python.outputs.python-version }}-${{ hashFiles('poetry.lock') }}
3030

31+
- name: Cache pre-commit
32+
id: cache-pre-commit
33+
uses: actions/cache@v3
34+
with:
35+
path: ~/.cache/pre-commit
36+
key: pre-commit-v1-test-${{ runner.os }}-${{ steps.setup_python.outputs.python-version }}-${{ hashFiles('.pre-commit-config.yaml') }}
37+
3138
- uses: Gr1N/setup-poetry@v7
3239
- name: Bootstrap environment
3340
run: |

0 commit comments

Comments
 (0)