Skip to content

Commit 3385872

Browse files
committed
ci-black-formatting - use variables for min Python versions
1 parent f0b27a0 commit 3385872

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

.github/workflows/ci-black-formatting.yaml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,19 +7,22 @@ on:
77
jobs:
88
lint-formatting:
99
runs-on: ubuntu-latest
10+
env:
11+
MIN_IOS_PY_VERSION: "3.10"
12+
MIN_BLENDER_PY_VERSION: "3.11"
1013
steps:
1114
- name: Action - checkout repository
1215
uses: actions/checkout@v6
1316

1417
- name: Action - install python
1518
uses: actions/setup-python@v6
1619
with:
17-
python-version: "3.10"
20+
python-version: ${{ env.MIN_IOS_PY_VERSION }}
1821

1922
- name: Action - install python
2023
uses: actions/setup-python@v6
2124
with:
22-
python-version: "3.11"
25+
python-version: ${{ env.MIN_BLENDER_PY_VERSION }}
2326

2427
- name: Install dependencies
2528
run: |
@@ -35,8 +38,8 @@ jobs:
3538
ERROR=0
3639
# Using 2 Python versions - one minimum required for IfcOpenShell
3740
# and other that's used by Blender currently.
38-
python3.10 -W error -m compileall -q src/ifcopenshell-python || ERROR=1
39-
python3.11 -W error -m compileall -q src/bonsai || ERROR=1
41+
python${{ env.MIN_IOS_PY_VERSION }} -W error -m compileall -q src/ifcopenshell-python || ERROR=1
42+
python${{ env.MIN_BLENDER_PY_VERSION }} -W error -m compileall -q src/bonsai || ERROR=1
4043
exit $ERROR
4144
continue-on-error: true
4245

0 commit comments

Comments
 (0)