Skip to content

Rozšířit CI na partial, workflow_dispatch #391

Rozšířit CI na partial, workflow_dispatch

Rozšířit CI na partial, workflow_dispatch #391

Workflow file for this run

name: lint
on:
push:
branches:
- main
pull_request:
jobs:
build:
runs-on: ubuntu-latest
timeout-minutes: 5
strategy:
matrix:
python-version: ['3.8', '3.9', '3.10', '3.11']
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install flake8 black isort
- name: Lint with flake8
run: |
flake8
- name: Lint with black
run: |
black --check .
- name: Lint with isort
run: |
isort . --check --profile black