From fc3b276106893edd99087be9cdade1cff277566a Mon Sep 17 00:00:00 2001 From: Gabriel Augendre Date: Tue, 14 Mar 2023 10:29:06 +0100 Subject: [PATCH] Add pre-commit cache --- .github/workflows/test.yaml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index 4170ed3..fa0ab0a 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -30,8 +30,13 @@ jobs: - name: Test run: pytest --cov=. --cov-branch --cov-report term-missing:skip-covered 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 - run: pre-commit run --all-files + run: pre-commit run --show-diff-on-failure --color=always --all-files auto_merge: name: Auto merge runs-on: ubuntu-latest