1 parent cdcfa1c commit 960d62eCopy full SHA for 960d62e
1 file changed
.github/workflows/pre-commit.yaml
@@ -22,7 +22,16 @@ jobs:
22
23
- uses: actions/setup-python@v6
24
with:
25
- python-version: "3.12"
+ python-version: "3.11"
26
+
27
+ # Cache the pre-commit environments based on the config file hash
28
+ - name: Cache Pre-Commit Environments
29
+ uses: actions/cache@v4
30
+ with:
31
+ path: ~/.cache/pre-commit
32
+ key: pre-commit-${{ runner.os }}-${{ hashFiles('.pre-commit-config.yaml') }}
33
+ restore-keys: |
34
+ pre-commit-${{ runner.os }}-
35
36
- name: Run pre-commit
37
uses: pre-commit/action@v3.0.1
0 commit comments