run pre-commit just once
This commit is contained in:
parent
d786140369
commit
8c91b10fae
1 changed files with 13 additions and 8 deletions
21
.github/workflows/test.yml
vendored
21
.github/workflows/test.yml
vendored
|
|
@ -33,11 +33,6 @@ jobs:
|
|||
|
||||
runs-on: ${{ matrix.os-version }}
|
||||
steps:
|
||||
- name: Dump GitHub context
|
||||
env:
|
||||
GITHUB_CONTEXT: ${{ toJson(github) }}
|
||||
run: echo "$GITHUB_CONTEXT"
|
||||
|
||||
- uses: actions/checkout@v3
|
||||
|
||||
- name: Set up Python
|
||||
|
|
@ -50,9 +45,6 @@ jobs:
|
|||
python -mpip install wheel
|
||||
python -mpip install -r requirements-dev.txt
|
||||
|
||||
- name: pre-commit
|
||||
run: pre-commit run --all
|
||||
|
||||
- name: Check stubs
|
||||
if: (! startsWith(matrix.python-version, 'pypy-'))
|
||||
run: make mypy PYTHON=python
|
||||
|
|
@ -75,3 +67,16 @@ jobs:
|
|||
with:
|
||||
name: coverage for ${{ matrix.python-version }} on ${{ matrix.os-version }}
|
||||
path: coverage.xml
|
||||
|
||||
pre-commit:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
|
||||
- name: Set up Python
|
||||
uses: actions/setup-python@v4
|
||||
with:
|
||||
python-version: '3.x'
|
||||
|
||||
- name: pre-commit
|
||||
run: pip install pre-commit && pre-commit run --all
|
||||
|
|
|
|||
Loading…
Reference in a new issue