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.3.0
2020
2121 - name : Check Version(s)
22- run : |
23- poetry run version-check `poetry run -- python -c "from noxconfig import PROJECT_CONFIG; print(PROJECT_CONFIG.version_file)"`
22+ run : poetry run -- nox -s version:check
2423
2524 Documentation :
2625 name : Docs
2726 needs : [ Version-Check ]
2827 runs-on : ubuntu-24.04
29-
28+ permissions :
29+ contents : read
3030 steps :
3131 - name : SCM Checkout
3232 uses : actions/checkout@v4
3333
3434 - name : Setup Python & Poetry Environment
35- uses : exasol/python-toolbox/.github/actions/python-environment@1.0.1
35+ uses : exasol/python-toolbox/.github/actions/python-environment@1.3.0
3636
3737 - name : Build Documentation
3838 run : |
@@ -41,18 +41,21 @@ jobs:
4141 build-matrix :
4242 name : Generate Build Matrix
4343 uses : ./.github/workflows/matrix-python.yml
44+ permissions :
45+ contents : read
4446
4547 Changelog :
4648 name : Changelog Update Check
4749 runs-on : ubuntu-24.04
50+ permissions :
51+ contents : read
4852 if : ${{ github.ref != 'refs/heads/main' && github.ref != 'refs/heads/master' }}
49-
5053 steps :
5154 - name : SCM Checkout
5255 uses : actions/checkout@v4
5356
5457 - name : Setup Python & Poetry Environment
55- uses : exasol/python-toolbox/.github/actions/python-environment@1.0.1
58+ uses : exasol/python-toolbox/.github/actions/python-environment@1.3.0
5659
5760 - name : Run changelog update check
5861 run : poetry run -- nox -s changelog:updated
@@ -61,24 +64,25 @@ jobs:
6164 name : Linting (Python-${{ matrix.python-version }})
6265 needs : [ Version-Check, build-matrix ]
6366 runs-on : ubuntu-24.04
67+ permissions :
68+ contents : read
6469 strategy :
6570 fail-fast : false
6671 matrix : ${{ fromJson(needs.build-matrix.outputs.matrix) }}
67-
6872 steps :
6973 - name : SCM Checkout
7074 uses : actions/checkout@v4
7175
7276 - name : Setup Python & Poetry Environment
73- uses : exasol/python-toolbox/.github/actions/python-environment@1.0.1
77+ uses : exasol/python-toolbox/.github/actions/python-environment@1.3.0
7478 with :
7579 python-version : ${{ matrix.python-version }}
7680
7781 - name : Run lint
7882 run : poetry run -- nox -s lint:code
7983
8084 - name : Upload Artifacts
81- 85+ 8286 with :
8387 name : lint-python${{ matrix.python-version }}
8488 path : |
9094 name : Type Checking (Python-${{ matrix.python-version }})
9195 needs : [ Version-Check, build-matrix ]
9296 runs-on : ubuntu-24.04
97+ permissions :
98+ contents : read
9399 strategy :
94100 fail-fast : false
95101 matrix : ${{ fromJson(needs.build-matrix.outputs.matrix) }}
99105 uses : actions/checkout@v4
100106
101107 - name : Setup Python & Poetry Environment
102- uses : exasol/python-toolbox/.github/actions/python-environment@1.0.1
108+ uses : exasol/python-toolbox/.github/actions/python-environment@1.3.0
103109 with :
104110 python-version : ${{ matrix.python-version }}
105111
@@ -110,6 +116,8 @@ jobs:
110116 name : Security Checks (Python-${{ matrix.python-version }})
111117 needs : [ Version-Check, build-matrix ]
112118 runs-on : ubuntu-24.04
119+ permissions :
120+ contents : read
113121 strategy :
114122 fail-fast : false
115123 matrix : ${{ fromJson(needs.build-matrix.outputs.matrix) }}
@@ -119,15 +127,15 @@ jobs:
119127 uses : actions/checkout@v4
120128
121129 - name : Setup Python & Poetry Environment
122- uses : exasol/python-toolbox/.github/actions/python-environment@1.0.1
130+ uses : exasol/python-toolbox/.github/actions/python-environment@1.3.0
123131 with :
124132 python-version : ${{ matrix.python-version }}
125133
126134 - name : Run security linter
127135 run : poetry run -- nox -s lint:security
128136
129137 - name : Upload Artifacts
130- 138+ 131139 with :
132140 name : security-python${{ matrix.python-version }}
133141 path : .security.json
@@ -136,21 +144,24 @@ jobs:
136144 Format :
137145 name : Format Check
138146 runs-on : ubuntu-24.04
139-
147+ permissions :
148+ contents : read
140149 steps :
141150 - name : SCM Checkout
142151 uses : actions/checkout@v4
143152
144153 - name : Setup Python & Poetry Environment
145- uses : exasol/python-toolbox/.github/actions/python-environment@1.0.1
154+ uses : exasol/python-toolbox/.github/actions/python-environment@1.3.0
146155
147156 - name : Run format check
148157 run : poetry run -- nox -s project:format
149158
150159 Tests :
151- name : Unit-Tests (Python-${{ matrix.python-version }}, Exasol-${{ matrix.exasol-version}} )
160+ name : Unit-Tests (Python-${{ matrix.python-version }})
152161 needs : [ Documentation, Lint, Type-Check, Security, Format, build-matrix ]
153162 runs-on : ubuntu-24.04
163+ permissions :
164+ contents : read
154165 env :
155166 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
156167 strategy :
@@ -162,15 +173,15 @@ jobs:
162173 uses : actions/checkout@v4
163174
164175 - name : Setup Python & Poetry Environment
165- uses : exasol/python-toolbox/.github/actions/python-environment@1.0.1
176+ uses : exasol/python-toolbox/.github/actions/python-environment@1.3.0
166177 with :
167178 python-version : ${{ matrix.python-version }}
168179
169180 - name : Run Tests and Collect Coverage
170181 run : poetry run -- nox -s test:unit -- --coverage
171182
172183 - name : Upload Artifacts
173- 184+ 174185 with :
175186 name : coverage-python${{ matrix.python-version }}-fast
176187 path : .coverage
0 commit comments