44 workflow_call :
55
66jobs :
7-
87 Version-Check :
98 name : Version
109 runs-on : ubuntu-24.04
11-
10+ permissions :
11+ contents : read
1212 steps :
1313 - name : SCM Checkout
1414 uses : actions/checkout@v4
1515 with :
1616 fetch-depth : 0
1717
1818 - name : Setup Python & Poetry Environment
19- uses : exasol/python-toolbox/.github/actions/python-environment@1.0.1
19+ uses : exasol/python-toolbox/.github/actions/python-environment@1.4.0
2020
2121 - name : Check Version(s)
22- run : poetry run -- version-check version.py
22+ run : poetry run -- nox -s version:check
2323
2424 Documentation :
2525 name : Docs
2626 needs : [ Version-Check ]
2727 runs-on : ubuntu-24.04
28-
28+ permissions :
29+ contents : read
2930 steps :
3031 - name : SCM Checkout
3132 uses : actions/checkout@v4
3233
3334 - name : Setup Python & Poetry Environment
34- uses : exasol/python-toolbox/.github/actions/python-environment@1.0.1
35+ uses : exasol/python-toolbox/.github/actions/python-environment@1.4.0
3536
3637 - name : Build Documentation
3738 run : |
@@ -40,18 +41,21 @@ jobs:
4041 build-matrix :
4142 name : Generate Build Matrix
4243 uses : ./.github/workflows/matrix-python.yml
44+ permissions :
45+ contents : read
4346
4447 Changelog :
4548 name : Changelog Update Check
4649 runs-on : ubuntu-24.04
50+ permissions :
51+ contents : read
4752 if : ${{ github.ref != 'refs/heads/main' && github.ref != 'refs/heads/master' }}
48-
4953 steps :
5054 - name : SCM Checkout
5155 uses : actions/checkout@v4
5256
5357 - name : Setup Python & Poetry Environment
54- uses : exasol/python-toolbox/.github/actions/python-environment@1.0.1
58+ uses : exasol/python-toolbox/.github/actions/python-environment@1.4.0
5559
5660 - name : Run changelog update check
5761 run : poetry run -- nox -s changelog:updated
@@ -60,24 +64,25 @@ jobs:
6064 name : Linting (Python-${{ matrix.python-version }})
6165 needs : [ Version-Check, build-matrix ]
6266 runs-on : ubuntu-24.04
67+ permissions :
68+ contents : read
6369 strategy :
6470 fail-fast : false
6571 matrix : ${{ fromJson(needs.build-matrix.outputs.matrix) }}
66-
6772 steps :
6873 - name : SCM Checkout
6974 uses : actions/checkout@v4
7075
7176 - name : Setup Python & Poetry Environment
72- uses : exasol/python-toolbox/.github/actions/python-environment@1.0.1
77+ uses : exasol/python-toolbox/.github/actions/python-environment@1.4.0
7378 with :
7479 python-version : ${{ matrix.python-version }}
7580
7681 - name : Run lint
7782 run : poetry run -- nox -s lint:code
7883
7984 - name : Upload Artifacts
80- 85+ 8186 with :
8287 name : lint-python${{ matrix.python-version }}
8388 path : |
8994 name : Type Checking (Python-${{ matrix.python-version }})
9095 needs : [ Version-Check, build-matrix ]
9196 runs-on : ubuntu-24.04
97+ permissions :
98+ contents : read
9299 strategy :
93100 fail-fast : false
94101 matrix : ${{ fromJson(needs.build-matrix.outputs.matrix) }}
98105 uses : actions/checkout@v4
99106
100107 - name : Setup Python & Poetry Environment
101- uses : exasol/python-toolbox/.github/actions/python-environment@1.0.1
108+ uses : exasol/python-toolbox/.github/actions/python-environment@1.4.0
102109 with :
103110 python-version : ${{ matrix.python-version }}
104111
@@ -109,6 +116,8 @@ jobs:
109116 name : Security Checks (Python-${{ matrix.python-version }})
110117 needs : [ Version-Check, build-matrix ]
111118 runs-on : ubuntu-24.04
119+ permissions :
120+ contents : read
112121 strategy :
113122 fail-fast : false
114123 matrix : ${{ fromJson(needs.build-matrix.outputs.matrix) }}
@@ -118,15 +127,15 @@ jobs:
118127 uses : actions/checkout@v4
119128
120129 - name : Setup Python & Poetry Environment
121- uses : exasol/python-toolbox/.github/actions/python-environment@1.0.1
130+ uses : exasol/python-toolbox/.github/actions/python-environment@1.4.0
122131 with :
123132 python-version : ${{ matrix.python-version }}
124133
125134 - name : Run security linter
126135 run : poetry run -- nox -s lint:security
127136
128137 - name : Upload Artifacts
129- 138+ 130139 with :
131140 name : security-python${{ matrix.python-version }}
132141 path : .security.json
@@ -135,21 +144,24 @@ jobs:
135144 Format :
136145 name : Format Check
137146 runs-on : ubuntu-24.04
138-
147+ permissions :
148+ contents : read
139149 steps :
140150 - name : SCM Checkout
141151 uses : actions/checkout@v4
142152
143153 - name : Setup Python & Poetry Environment
144- uses : exasol/python-toolbox/.github/actions/python-environment@1.0.1
154+ uses : exasol/python-toolbox/.github/actions/python-environment@1.4.0
145155
146156 - name : Run format check
147157 run : poetry run -- nox -s project:format
148158
149159 Tests :
150- name : Unit-Tests (Python-${{ matrix.python-version }}, Exasol-${{ matrix.exasol-version}} )
160+ name : Unit-Tests (Python-${{ matrix.python-version }})
151161 needs : [ Documentation, Lint, Type-Check, Security, Format, build-matrix ]
152162 runs-on : ubuntu-24.04
163+ permissions :
164+ contents : read
153165 env :
154166 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
155167 strategy :
@@ -161,15 +173,15 @@ jobs:
161173 uses : actions/checkout@v4
162174
163175 - name : Setup Python & Poetry Environment
164- uses : exasol/python-toolbox/.github/actions/python-environment@1.0.1
176+ uses : exasol/python-toolbox/.github/actions/python-environment@1.4.0
165177 with :
166178 python-version : ${{ matrix.python-version }}
167179
168180 - name : Run Tests and Collect Coverage
169181 run : poetry run -- nox -s test:unit -- --coverage
170182
171183 - name : Upload Artifacts
172- 184+ 173185 with :
174186 name : coverage-python${{ matrix.python-version }}-fast
175187 path : .coverage
0 commit comments