Skip to content

chore: Update pre-commit #279

chore: Update pre-commit

chore: Update pre-commit #279

Workflow file for this run

name: build
on:
pull_request:
paths:
- '**.py'
- '.github/workflows/*.yml'
- '.pre-commit-config.yaml'
- '.yamllint'
- 'pyproject.toml'
- 'tox.ini'
- 'mypy.ini'
push:
branches:
- master
jobs:
pre-commit:
name: Generic pre-commit checks
runs-on: ubuntu-22.04
steps:
- uses: actions/[email protected]
with:
fetch-depth: 1
- uses: actions/setup-python@v5
with:
python-version: 3.9
- run: pip install pre-commit
- run: SKIP=mypy pre-commit run --all-files
mypy:
name: Mypy
runs-on: ubuntu-22.04
steps:
- uses: actions/[email protected]
with:
fetch-depth: 1
- uses: actions/setup-python@v5
with:
python-version: 3.9
- run: pip install pre-commit
- run: pre-commit run mypy --all-files
tests:
strategy:
matrix:
os: [ubuntu-22.04]
python: ["3.8", "3.9", "3.10", "3.11", "3.12"]
name: ${{ matrix.os }}/tests_${{ matrix.python }}
runs-on: ${{ matrix.os }}
steps:
- uses: actions/[email protected]
with:
fetch-depth: 1
- uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python }}
- run: pip install tox tox-gh-actions
- run: python -m tox
- name: Upload coverage to Codecov
uses: codecov/[email protected]
with:
name: codecov-${{ matrix.python }}
token: ${{ secrets.CODECOV_TOKEN }}