From d5d5638ca9ae3cf7f70bed780dc95d60328f93e4 Mon Sep 17 00:00:00 2001 From: Jannis Mittenzwei Date: Fri, 29 Nov 2024 09:33:35 +0100 Subject: [PATCH] update template for github workflow check.yml --- .../templates/github/workflows/checks.yml | 23 ++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) diff --git a/exasol/toolbox/templates/github/workflows/checks.yml b/exasol/toolbox/templates/github/workflows/checks.yml index 5f5bf5260..3706b9c4c 100644 --- a/exasol/toolbox/templates/github/workflows/checks.yml +++ b/exasol/toolbox/templates/github/workflows/checks.yml @@ -123,9 +123,30 @@ jobs: path: .security.json include-hidden-files: true + Format: + name: Format Check (Python-${{ matrix.python-version }}) + needs: [ Version-Check ] + runs-on: ubuntu-latest + strategy: + fail-fast: false + matrix: + python-version: [ "3.9" ] + + steps: + - name: SCM Checkout + uses: actions/checkout@v4 + + - name: Setup Python & Poetry Environment + uses: exasol/python-toolbox/.github/actions/python-environment@0.18.0 + with: + python-version: ${{ matrix.python-version }} + + - name: Run format check + run: poetry run nox -s project:format + Tests: name: Unit-Tests (Python-${{ matrix.python-version }}, Exasol-${{ matrix.exasol-version}}) - needs: [ Documentation, Lint, Type-Check, Security] + needs: [ Documentation, Lint, Type-Check, Security, Format ] runs-on: ubuntu-latest env: GITHUB_TOKEN: ${{ secrets.ALTERNATIVE_GITHUB_TOKEN || secrets.GITHUB_TOKEN }}