Skip to content

add workflow

add workflow #1

Workflow file for this run

name: Linting with flake8 and isort
on: [push, pull_request]
jobs:
lint:
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: 3.8
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install flake8 isort
- name: Run flake8
run: |
flake8 .
- name: Check import order with isort
run: |
isort . --check --diff