mirror of
https://github.com/Crocmagnon/charasheet.git
synced 2024-11-22 14:38:03 +01:00
Add pre-commit cache
This commit is contained in:
parent
c590d1ae44
commit
fc3b276106
1 changed files with 6 additions and 1 deletions
7
.github/workflows/test.yaml
vendored
7
.github/workflows/test.yaml
vendored
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue