Skip to content

Commit

Permalink
Add flake8 linting via reviewdog and GitHub Actions.
Browse files Browse the repository at this point in the history
  • Loading branch information
QuLogic committed May 20, 2020
1 parent 0359984 commit 0813853
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/reviewdog.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Linting
on: [pull_request]

jobs:
flake8:
name: flake8
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

- name: Set up Python 3
uses: actions/setup-python@v1
with:
python-version: 3.8

- name: Install flake8
run: pip3 install -r flake8

- name: Set up reviewdog
run: |
mkdir -p $HOME/bin
curl -sfL \
https://github.com/reviewdog/reviewdog/raw/master/install.sh | \
sh -s -- -b $HOME/bin
echo ::add-path::$HOME/bin
- name: Run flake8
env:
REVIEWDOG_GITHUB_API_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: flake8 | reviewdog -f=pep8 -name=flake8 -reporter=github-check

0 comments on commit 0813853

Please sign in to comment.