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