Skip to content

Commit 960d62e

Browse files
committed
change python version, run with caching
1 parent cdcfa1c commit 960d62e

1 file changed

Lines changed: 10 additions & 1 deletion

File tree

.github/workflows/pre-commit.yaml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,16 @@ jobs:
2222

2323
- uses: actions/setup-python@v6
2424
with:
25-
python-version: "3.12"
25+
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 }}-
2635
2736
- name: Run pre-commit
2837
uses: pre-commit/action@v3.0.1

0 commit comments

Comments
 (0)