mirror of
https://github.com/harismuneer/Ultimate-Facebook-Scraper
synced 2024-09-20 22:01:57 +00:00
Set up Github Actions to check lint on PRs
This commit is contained in:
parent
08c450bb2b
commit
77f03f2486
1 changed files with 23 additions and 0 deletions
23
.github/workflows/main.yaml
vendored
Normal file
23
.github/workflows/main.yaml
vendored
Normal 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
|
Loading…
Reference in a new issue