Add pre-commit cache

This commit is contained in:
Gabriel Augendre 2023-03-14 10:29:06 +01:00
parent c590d1ae44
commit fc3b276106

View file

@ -30,8 +30,13 @@ jobs:
- name: Test - name: Test
run: pytest --cov=. --cov-branch --cov-report term-missing:skip-covered run: pytest --cov=. --cov-branch --cov-report term-missing:skip-covered
working-directory: ./src/ working-directory: ./src/
- name: Setup pre-commit cache
uses: actions/cache@v3
with:
path: ~/.cache/pre-commit
key: pre-commit-3|${{ env.pythonLocation }}|${{ hashFiles('.pre-commit-config.yaml') }}
- name: Check pre-commit - name: Check pre-commit
run: pre-commit run --all-files run: pre-commit run --show-diff-on-failure --color=always --all-files
auto_merge: auto_merge:
name: Auto merge name: Auto merge
runs-on: ubuntu-latest runs-on: ubuntu-latest