From bd4b80bdc23151b19e8c1222293777c1c43343b4 Mon Sep 17 00:00:00 2001 From: Andrej730 Date: Wed, 18 Jun 2025 13:44:35 +0500 Subject: [PATCH] linter github workflow - use correct minimum required versions Previously it was using Python 3.12 for everything, therefore syntax errors from Python 3.9 (e.g. `match` statement in ifcopenshell-python) went under the radar. --- .github/workflows/ci-black-formatting.yaml | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/.github/workflows/ci-black-formatting.yaml b/.github/workflows/ci-black-formatting.yaml index 094d0576df..7d90487316 100644 --- a/.github/workflows/ci-black-formatting.yaml +++ b/.github/workflows/ci-black-formatting.yaml @@ -4,9 +4,6 @@ on: push: pull_request: -env: - PYTHON_VERSION: "3.12" - jobs: lint-formatting: runs-on: ubuntu-latest @@ -17,7 +14,12 @@ jobs: - name: Action - install python uses: actions/setup-python@v5.3.0 with: - python-version: "${{ env.PYTHON_VERSION }}" + python-version: "3.9" + + - name: Action - install python + uses: actions/setup-python@v5.3.0 + with: + python-version: "3.11" - name: Install dependencies run: | @@ -31,8 +33,8 @@ jobs: id: syntax-errors run: | ERROR=0 - python3 -W error -m compileall -q src/ifcopenshell-python || ERROR=1 - python3 -W error -m compileall -q src/bonsai || ERROR=1 + python3.9 -W error -m compileall -q src/ifcopenshell-python || ERROR=1 + python3.11 -W error -m compileall -q src/bonsai || ERROR=1 exit $ERROR continue-on-error: true