ci: add pre-commit python cache

This commit is contained in:
jo 2022-09-01 19:31:33 +02:00 committed by Kyle Robbertze
parent 510d55c7c1
commit d87e5d78a7
1 changed files with 8 additions and 0 deletions

View File

@ -18,6 +18,14 @@ jobs:
- uses: actions/setup-python@v4
with:
python-version: "3.x"
- uses: actions/cache@v3
with:
path: ~/.cache/pip
key: ${{ runner.os }}-project-pre-commit-pip-${{ hashFiles('.pre-commit-config.yaml') }}
restore-keys: |
${{ runner.os }}-project-pre-commit-pip
- uses: pre-commit/action@v3.0.0
check-shell: