[WIP] cache tests

This commit is contained in:
jscampucci
2025-09-17 15:09:29 +02:00
parent 6cc18b254a
commit fd40a6279a

View File

@@ -15,10 +15,14 @@ jobs:
python-version: "3.11"
- name: Get python version
run: echo "PY=$(python -VV | sha256sum | cut -d' ' -f1)" >> $GITHUB_ENV
# - uses: actions/cache@v4
# with:
# path: ~/.cache/pre-commit
# key: pre-commit|${{ env.PY }}|${{ hashFiles('.pre-commit-config.yaml') }}
- name: Cache pre-commit environments
uses: actions/cache@v4
with:
path: ~/.cache/pre-commit
key: pre-commit-${{ env.PY }}-${{ hashFiles('.pre-commit-config.yaml') }}
restore-keys: |
pre-commit-${{ env.PY }}-
pre-commit-
- name: Install pre-commit
run: pip install pre-commit
- name: Run pre-commit