mirror of
https://github.com/Crocmagnon/charasheet.git
synced 2024-12-22 13:51:49 +01:00
Run pre-commit before tests
This commit is contained in:
parent
ae725426c8
commit
5b20019c18
1 changed files with 3 additions and 5 deletions
8
.github/workflows/test.yaml
vendored
8
.github/workflows/test.yaml
vendored
|
@ -25,11 +25,6 @@ jobs:
|
|||
run: |
|
||||
pip install pip-tools
|
||||
pip-sync requirements.txt requirements-dev.txt
|
||||
- name: Ruff
|
||||
run: ruff --format=github .
|
||||
- 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:
|
||||
|
@ -37,6 +32,9 @@ jobs:
|
|||
key: pre-commit-3|${{ env.pythonLocation }}|${{ hashFiles('.pre-commit-config.yaml') }}
|
||||
- name: Check pre-commit
|
||||
run: pre-commit run --show-diff-on-failure --color=always --all-files
|
||||
- name: Test
|
||||
run: pytest --cov=. --cov-branch --cov-report term-missing:skip-covered
|
||||
working-directory: ./src/
|
||||
auto_merge:
|
||||
name: Auto merge
|
||||
runs-on: ubuntu-latest
|
||||
|
|
Loading…
Reference in a new issue