diff --git a/.github/workflows/pull-request.yml b/.github/workflows/pull-request.yml index 7fe087c..2a32fd7 100644 --- a/.github/workflows/pull-request.yml +++ b/.github/workflows/pull-request.yml @@ -20,6 +20,33 @@ env: CODECOV_UNIQUE_NAME: CODECOV_UNIQUE_NAME-${{ github.run_id }}-${{ github.run_number }} jobs: + Python-Format-Checker: + name: Python Black Format Checker + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: rickstaa/action-black@v1 + with: + black_args: ". --check" + + Python-Linter: + name: Python Flake8 Linter + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - name: Set up Python 3.10 + uses: actions/setup-python@v5 + with: + python-version: '3.10' + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install tox + - name: Run lint 💅 + run: tox + env: + TOXENV: flake8 + Code-Quality-Checks: name: Performs linting, formatting, type-checking, checking for different source and target branch runs-on: ubuntu-latest