@@ -3,41 +3,29 @@ name: Checks
33on : workflow_call
44
55jobs :
6+
67 version-check-job :
7- name : Version Check
8+ name : Version Check & Build Documentation
89 runs-on : ubuntu-latest
910
1011 steps :
11-
1212 - name : SCM Checkout
1313 uses : actions/checkout@v4
1414 with :
1515 fetch-depth : 0
1616
1717 - name : Setup Python & Poetry Environment
18- uses : exasol/python-toolbox/.github/actions/python-environment@0.12 .0
18+ uses : exasol/python-toolbox/.github/actions/python-environment@0.14 .0
1919
2020 - name : Check Version(s)
2121 run : poetry run version-check version.py
2222
23- build-documentation-job :
24- name : Build Documentation
25- needs : [version-check-job]
26- runs-on : ubuntu-latest
27-
28- steps :
29- - name : SCM Checkout
30- uses : actions/checkout@v4
31-
32- - name : Setup Python & Poetry Environment
33- uses :
exasol/python-toolbox/.github/actions/[email protected] 34-
35- - name : Build Documentation
36- run : |
37- poetry run python -m nox -s build-docs
23+ - name : Build Documentation
24+ run : |
25+ poetry run python -m nox -s build-docs
3826
3927 lint-job :
40- name : Linting (Python-${{ matrix.python-version }})
28+ name : Linting and Type Checks (Python-${{ matrix.python-version }})
4129 needs : [version-check-job]
4230 runs-on : ubuntu-latest
4331 strategy :
@@ -50,50 +38,18 @@ jobs:
5038 uses : actions/checkout@v4
5139
5240 - name : Setup Python & Poetry Environment
53- uses : exasol/python-toolbox/.github/actions/python-environment@0.12 .0
41+ uses : exasol/python-toolbox/.github/actions/python-environment@0.14 .0
5442 with :
5543 python-version : ${{ matrix.python-version }}
5644
5745 - name : Run Tests
5846 run : poetry run nox -s lint
5947
48+ - name : Run type-check
49+ run : poetry run nox -s type-check
50+
6051 - name : Upload Artifacts
6152 uses : actions/upload-artifact@v3
6253 with :
6354 name : .lint.txt
6455 path : .lint.txt
65-
66- type-check-job :
67- name : Type Checking (Python-${{ matrix.python-version }})
68- needs : [version-check-job]
69- runs-on : ubuntu-latest
70- strategy :
71- fail-fast : false
72- matrix :
73- python-version : ["3.10", "3.11"]
74-
75- steps :
76- - name : SCM Checkout
77- uses : actions/checkout@v4
78-
79- - name : Setup Python & Poetry Environment
80- uses :
exasol/python-toolbox/.github/actions/[email protected] 81- with :
82- python-version : ${{ matrix.python-version }}
83-
84- - name : Run Tests
85- run : poetry run nox -s type-check
86-
87- tests-job :
88- name : Tests (Python-${{ matrix.python-version }}, Exasol-${{ matrix.exasol-version}})
89- needs : [build-documentation-job, lint-job, type-check-job]
90- uses : ./.github/workflows/run-tests.yml
91- strategy :
92- fail-fast : false
93- matrix :
94- python-version : ["3.10", "3.11"]
95- exasol-version : ["7.1.9"]
96- secrets : inherit
97- with :
98- python-version : ${{ matrix.python-version }}
99- exasol-version : ${{ matrix.exasol-version }}
0 commit comments