run pre-commit just once

This commit is contained in:
Jeff Epler 2023-07-31 20:59:18 -05:00
parent d786140369
commit 8c91b10fae
No known key found for this signature in database
GPG key ID: D5BF15AB975AB4DE

View file

@ -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