Skip to content

lint

lint #19

Workflow file for this run

name: lint
on:
workflow_dispatch:
# push:
# pull_request:
# types: [ opened, reopened, synchronize ]
jobs:
check:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: [ '3.10', '3.x' ]
name: check ${{ matrix.python-version }}
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Set up CPython ${{ matrix.python-version }}
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
id: install-deps
run: |
pip install -U mypy flake8
pip install -U -r requirements.txt
- name: Run mypy
if: ${{ always() && steps.install-deps.outcome == 'success' }}
run: python3 -m mypy ./src/
- name: Run flake8
if: ${{ always() && steps.install-deps.outcome == 'success' }}
run: flake8 ./src/