workflows/main: add flake8 test
@@ -20,6 +20,17 @@ jobs:
>>> ${{ github.event.head_commit.message }}
- name: Checkout
uses: actions/checkout@v2
+ - name: Set up Python 3.8
+ uses: actions/setup-python@v2
+ with:
+ python-version: 3.8
+ - name: Install testing dependencies
+ run: |
+ python -m pip install --upgrade pip
+ python -m pip install flake8
+ - name: Check with pyflakes
+ run: |
+ flake8 . --ignore=E501,E722,E126,E128,W503,E121 --exclude=migrations
- name: Set up QEMU
uses: docker/setup-qemu-action@v1
- name: Set up Docker Buildx
