Skip to content

Add Python 3.12 support. Update action versions #20

Add Python 3.12 support. Update action versions

Add Python 3.12 support. Update action versions #20

Workflow file for this run

name: Python linting
on:
push:
paths:
- '**.py'
- .github/workflows/lint.yaml
- .flake8
- .isort.cfg
- mypy.ini
- pyproject.toml
- tox.ini
pull_request:
paths:
- '**.py'
- .github/workflows/lint.yaml
- .flake8
- .isort.cfg
- mypy.ini
- pyproject.toml
- tox.ini
concurrency:
group: lint-${{ github.ref }}
cancel-in-progress: true
jobs:
test:
name: Test
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: ['3.8', '3.12']
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install tox
run: pip install tox
- name: Run tox
run: tox -e lint,mypy
- uses: psf/black@stable
- uses: isort/isort-action@v1