Set up Github Actions to check lint on PRs

This commit is contained in:
Quentin Lemaire 2019-11-30 00:19:17 +01:00
parent 08c450bb2b
commit 77f03f2486
No known key found for this signature in database
GPG key ID: 5A99AA8DCE71630E

23
.github/workflows/main.yaml vendored Normal file
View file

@ -0,0 +1,23 @@
name: Lint
# Trigger the workflow on push or pull request
on: [push, pull_request]
jobs:
lint:
name: Check lint code with Black
runs-on: ubuntu-latest
steps:
- name: Check out code into the Go module directory
uses: actions/checkout@v1
- name: Setup Python 3
uses: actions/setup-python@v1
with:
python-version: "3.x"
- name: Install Black
run: pip3 install black
- name: Check lint
run: black --check scraper