From 2d23e8a375039027704168838b0f51ef86b61c08 Mon Sep 17 00:00:00 2001 From: Alexander Grund Date: Thu, 20 Aug 2020 13:48:51 +0200 Subject: [PATCH] Run flake8 on CI --- .github/workflows/linting.yml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 .github/workflows/linting.yml diff --git a/.github/workflows/linting.yml b/.github/workflows/linting.yml new file mode 100644 index 00000000000..09493c8789e --- /dev/null +++ b/.github/workflows/linting.yml @@ -0,0 +1,20 @@ +name: Static Analysis +on: [push, pull_request] +jobs: + python-linting: + runs-on: ubuntu-18.04 + steps: + - uses: actions/checkout@v2 + + - name: set up Python + uses: actions/setup-python@v1 + with: + python-version: 3.8 + + - name: install Python packages + run: | + pip install --upgrade pip + pip install --upgrade flake8 + + - name: Run flake8 to verify PEP8-compliance of Python code + run: flake8 -j3