Skip to content

Commit 304facd

Browse files
committed
Update checks workflow
1 parent 4d2bbd7 commit 304facd

File tree

1 file changed

+11
-13
lines changed

1 file changed

+11
-13
lines changed

.github/workflows/checks.yml

Lines changed: 11 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -40,14 +40,16 @@ jobs:
4040
run: |
4141
poetry run python -m nox -s docs:build
4242
43+
python_versions:
44+
uses: ./.github/workflows/:matrix:python.yml
45+
4346
Lint:
4447
name: Linting (Python-${{ matrix.python-version }})
45-
needs: [ Version-Check ]
48+
needs: [ Version-Check, python_versions ]
4649
runs-on: ubuntu-latest
4750
strategy:
4851
fail-fast: false
49-
matrix:
50-
python-version: [ "3.9", "3.10", "3.11", "3.12" ]
52+
matrix: ${{ fromJson(steps.needs.python_versions.outputs.matrix) }}
5153

5254
steps:
5355
- name: SCM Checkout
@@ -70,12 +72,11 @@ jobs:
7072

7173
Type-Check:
7274
name: Type Checking (Python-${{ matrix.python-version }})
73-
needs: [ Version-Check ]
75+
needs: [ Version-Check, python_versions ]
7476
runs-on: ubuntu-latest
7577
strategy:
7678
fail-fast: false
77-
matrix:
78-
python-version: [ "3.9", "3.10", "3.11", "3.12" ]
79+
matrix: ${{ fromJson(steps.needs.python_versions.outputs.matrix) }}
7980

8081
steps:
8182
- name: SCM Checkout
@@ -91,12 +92,11 @@ jobs:
9192

9293
Security:
9394
name: Security Checks (Python-${{ matrix.python-version }})
94-
needs: [ Version-Check ]
95+
needs: [ Version-Check, python_versions ]
9596
runs-on: ubuntu-latest
9697
strategy:
9798
fail-fast: false
98-
matrix:
99-
python-version: [ "3.9", "3.10", "3.11", "3.12" ]
99+
matrix: ${{ fromJson(steps.needs.python_versions.outputs.matrix) }}
100100

101101
steps:
102102
- name: SCM Checkout
@@ -135,15 +135,13 @@ jobs:
135135

136136
Tests:
137137
name: Unit-Tests (Python-${{ matrix.python-version }}, Exasol-${{ matrix.exasol-version}})
138-
needs: [ Documentation, Lint, Type-Check, Security, Format]
138+
needs: [ Documentation, Lint, Type-Check, Security, Format, python_versions ]
139139
runs-on: ubuntu-latest
140140
env:
141141
GITHUB_TOKEN: ${{ secrets.ALTERNATIVE_GITHUB_TOKEN || secrets.GITHUB_TOKEN }}
142142
strategy:
143143
fail-fast: false
144-
matrix:
145-
python-version: [ "3.9", "3.10", "3.11", "3.12" ]
146-
exasol-version: [ "7.1.9" ]
144+
matrix: ${{ fromJson(steps.needs.python_versions.outputs.matrix) }}
147145

148146
steps:
149147
- name: SCM Checkout

0 commit comments

Comments
 (0)