mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-19 06:39:13 +00:00
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.
This commit is contained in:
@@ -4,9 +4,6 @@ on:
|
|||||||
push:
|
push:
|
||||||
pull_request:
|
pull_request:
|
||||||
|
|
||||||
env:
|
|
||||||
PYTHON_VERSION: "3.12"
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
lint-formatting:
|
lint-formatting:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
@@ -17,7 +14,12 @@ jobs:
|
|||||||
- name: Action - install python
|
- name: Action - install python
|
||||||
uses: actions/setup-python@v5.3.0
|
uses: actions/setup-python@v5.3.0
|
||||||
with:
|
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
|
- name: Install dependencies
|
||||||
run: |
|
run: |
|
||||||
@@ -31,8 +33,8 @@ jobs:
|
|||||||
id: syntax-errors
|
id: syntax-errors
|
||||||
run: |
|
run: |
|
||||||
ERROR=0
|
ERROR=0
|
||||||
python3 -W error -m compileall -q src/ifcopenshell-python || ERROR=1
|
python3.9 -W error -m compileall -q src/ifcopenshell-python || ERROR=1
|
||||||
python3 -W error -m compileall -q src/bonsai || ERROR=1
|
python3.11 -W error -m compileall -q src/bonsai || ERROR=1
|
||||||
exit $ERROR
|
exit $ERROR
|
||||||
continue-on-error: true
|
continue-on-error: true
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user