-
Notifications
You must be signed in to change notification settings - Fork 229
32 lines (31 loc) · 958 Bytes
/
workflow.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
name: CI
on: [push, pull_request]
# Run linter with github actions for quick feedbacks.
# The unittests will be run on CircleCI instead.
jobs:
linter:
runs-on: ubuntu-latest
strategy:
max-parallel: 4
matrix:
python-version: [3.8, 3.9] # importlib-metadata v5 requires 3.8+
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==3.8.1 flake8-bugbear flake8-comprehensions isort==4.3.21
pip install black==24.2.0
flake8 --version
- name: Lint
run: |
echo "Running isort"
isort -c -sp .
echo "Running black"
black --check .
echo "Running flake8"
flake8 .