Skip to content

add python3.8-python3.11 of current support cycle #819

add python3.8-python3.11 of current support cycle

add python3.8-python3.11 of current support cycle #819

Workflow file for this run

name: Linting
# Controls when the action will run.
on:
# Triggers the workflow on push or pull request events but only for the main branch
push:
branches: [ main ]
pull_request:
branches: [ main ]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
lint:
runs-on: ubuntu-latest
steps:
- name: Cancel Outdated Runs
uses: styfle/[email protected]
with:
access_token: ${{ github.token }}
- uses: actions/checkout@v4
- name: Set up Python 3.11
uses: actions/setup-python@v5
with:
python-version: '3.11'
- uses: actions/cache@v4
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip3-${{ hashFiles('*requirements.txt') }}
- run: pip install wheel
- name: Install dependencies
run: pip install -e .[dev]
- name: Run Flake8
run: flake8
- name: Black code style
run: black . --check --exclude '\.mypy_cache/|\.venv/|env/|(.*/)*snapshots/|.pytype/'
- name: Docstring formatting
run: docformatter -c -r . --wrap-summaries 88 --wrap-descriptions 88
- name: Check import order with isort
run: isort . --check --diff
- name: PyType type-check
run: pytype -j auto .