@@ -40,14 +40,17 @@ jobs:
4040 run : |
4141 poetry run python -m nox -s docs:build
4242
43+ build-matrix :
44+ name : Generate Build Matrix
45+ uses : ./.github/workflows/matrix-python.yml
46+
4347 Lint :
4448 name : Linting (Python-${{ matrix.python-version }})
45- needs : [ Version-Check ]
49+ needs : [ Version-Check, build-matrix ]
4650 runs-on : ubuntu-latest
4751 strategy :
4852 fail-fast : false
49- matrix :
50- python-version : [ "3.9", "3.10", "3.11", "3.12" ]
53+ matrix : ${{ fromJson(needs.build-matrix.outputs.matrix) }}
5154
5255 steps :
5356 - name : SCM Checkout
@@ -70,12 +73,11 @@ jobs:
7073
7174 Type-Check :
7275 name : Type Checking (Python-${{ matrix.python-version }})
73- needs : [ Version-Check ]
76+ needs : [ Version-Check, build-matrix ]
7477 runs-on : ubuntu-latest
7578 strategy :
7679 fail-fast : false
77- matrix :
78- python-version : [ "3.9", "3.10", "3.11", "3.12" ]
80+ matrix : ${{ fromJson(needs.build-matrix.outputs.matrix) }}
7981
8082 steps :
8183 - name : SCM Checkout
@@ -91,12 +93,11 @@ jobs:
9193
9294 Security :
9395 name : Security Checks (Python-${{ matrix.python-version }})
94- needs : [ Version-Check ]
96+ needs : [ Version-Check, build-matrix ]
9597 runs-on : ubuntu-latest
9698 strategy :
9799 fail-fast : false
98- matrix :
99- python-version : [ "3.9", "3.10", "3.11", "3.12" ]
100+ matrix : ${{ fromJson(needs.build-matrix.outputs.matrix) }}
100101
101102 steps :
102103 - name : SCM Checkout
@@ -134,16 +135,14 @@ jobs:
134135 run : poetry run nox -s project:format
135136
136137 Tests :
137- name : Unit-Tests (Python-${{ matrix.python-version }}, Exasol-${{ matrix.exasol-version}} )
138- needs : [ Documentation, Lint, Type-Check, Security, Format]
138+ name : Unit-Tests (Python-${{ matrix.python-version }})
139+ needs : [ Documentation, Lint, Type-Check, Security, Format, build-matrix ]
139140 runs-on : ubuntu-latest
140141 env :
141142 GITHUB_TOKEN : ${{ secrets.ALTERNATIVE_GITHUB_TOKEN || secrets.GITHUB_TOKEN }}
142143 strategy :
143144 fail-fast : false
144- matrix :
145- python-version : [ "3.9", "3.10", "3.11", "3.12" ]
146- exasol-version : [ "7.1.9" ]
145+ matrix : ${{ fromJson(needs.build-matrix.outputs.matrix) }}
147146
148147 steps :
149148 - name : SCM Checkout
@@ -155,7 +154,7 @@ jobs:
155154 python-version : ${{ matrix.python-version }}
156155
157156 - name : Run Tests and Collect Coverage
158- run : poetry run nox -s test:unit -- -- --coverage --db-version ${{ matrix.exasol-version }}
157+ run : poetry run nox -s test:unit -- -- --coverage
159158
160159 - name : Upload Artifacts
161160 uses : actions/upload-artifact@v4.4.0
0 commit comments