mirror of
https://github.com/kennethreitz/background.git
synced 2026-06-05 23:10:18 +00:00
773c5d6af5
Publish via gh-actions Add Black and flake8 linters
29 lines
573 B
YAML
29 lines
573 B
YAML
name: CI
|
|
|
|
on:
|
|
push:
|
|
branches: master
|
|
pull_request:
|
|
branches: master
|
|
|
|
jobs:
|
|
lint:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
|
|
- name: Setup Python
|
|
uses: actions/setup-python@v2
|
|
with:
|
|
python-version: 3.9
|
|
|
|
- name: Check python code formatting
|
|
run: |
|
|
pip install black
|
|
black --check .
|
|
|
|
- name: Check compliance with pep8, pyflakes and circular complexity
|
|
run: |
|
|
pip install flake8
|
|
flake8 .
|