Run flake8 on your Python code.
Create a workflow file in your repository:
name: Code Quality
on:
push:
paths:
- "**.py"
jobs:
lint:
name: Python Lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: "3.8"
- name: Run flake8
uses: julianwachholz/flake8-action@v1
with:
checkName: "Python Lint"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}See the actions tab for runs of this action! 🚀