From 89b21be09d77eeb17736cc34e23629731fa3a1be Mon Sep 17 00:00:00 2001 From: Emile Ferreira <32413750+emileferreira@users.noreply.github.com> Date: Fri, 26 Jan 2024 10:25:38 +0200 Subject: [PATCH] Add PEP8 compliance check --- .github/workflows/{test-python.yml => python.yml} | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) rename .github/workflows/{test-python.yml => python.yml} (61%) diff --git a/.github/workflows/test-python.yml b/.github/workflows/python.yml similarity index 61% rename from .github/workflows/test-python.yml rename to .github/workflows/python.yml index 7aa01c8..1184a97 100644 --- a/.github/workflows/test-python.yml +++ b/.github/workflows/python.yml @@ -1,7 +1,7 @@ -name: Python tests +name: Python on: [push, workflow_dispatch, pull_request] jobs: - build: + test: runs-on: ubuntu-latest strategy: matrix: @@ -18,3 +18,13 @@ jobs: pip install antlr4-python3-runtime==4.9.1 - name: Run all the Python tests run: python3 tests/test_all.py + pep8: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@master + with: + ref: ${{ github.event.pull_request.head.sha }} + - name: 'Run PEP8 check' + uses: quentinguidee/pep8-action@v1 + with: + arguments: '--ignore=E121,E123,E126,E133,E226,E241,E242,E704,W503,W504,W505,W191'