77
88 Version-Check :
99 name : Version
10- runs-on : ubuntu-latest
10+ runs-on : ubuntu-24.04
1111
1212 steps :
1313 - name : SCM Checkout
@@ -19,12 +19,12 @@ jobs:
1919 uses : ./.github/actions/python-environment
2020
2121 - name : Check Version(s)
22- run : poetry run version-check `poetry run python -c "from noxconfig import PROJECT_CONFIG; print(PROJECT_CONFIG.version_file)"`
22+ run : poetry run version-check `poetry run -- python -c "from noxconfig import PROJECT_CONFIG; print(PROJECT_CONFIG.version_file)"`
2323
2424 Documentation :
2525 name : Docs
2626 needs : [ Version-Check ]
27- runs-on : ubuntu-latest
27+ runs-on : ubuntu-24.04
2828
2929 steps :
3030 - name : SCM Checkout
@@ -35,11 +35,11 @@ jobs:
3535
3636 - name : Build Documentation
3737 run : |
38- poetry run python -m nox -s docs:build
38+ poetry run -- nox -s docs:build
3939
4040 Changelog :
4141 name : Changelog Update Check
42- runs-on : ubuntu-latest
42+ runs-on : ubuntu-24.04
4343
4444 steps :
4545 - name : SCM Checkout
5454 python-version : " 3.9"
5555
5656 - name : Run changelog update check
57- run : poetry run nox -s changelog:updated
57+ if : ${{ github.ref != 'refs/heads/main' }}
58+ run : poetry run -- nox -s changelog:updated
5859
5960 build-matrix :
6061 name : Generate Build Matrix
6364 Lint :
6465 name : Linting (Python-${{ matrix.python-version }})
6566 needs : [ Version-Check, build-matrix ]
66- runs-on : ubuntu-latest
67+ runs-on : ubuntu-24.04
6768 strategy :
6869 fail-fast : false
6970 matrix : ${{ fromJson(needs.build-matrix.outputs.matrix) }}
7879 python-version : ${{ matrix.python-version }}
7980
8081 - name : Run lint
81- run : poetry run nox -s lint:code
82+ run : poetry run -- nox -s lint:code
8283
8384 - name : Upload Artifacts
84859293 Type-Check :
9394 name : Type Checking (Python-${{ matrix.python-version }})
9495 needs : [ Version-Check, build-matrix ]
95- runs-on : ubuntu-latest
96+ runs-on : ubuntu-24.04
9697 strategy :
9798 fail-fast : false
9899 matrix : ${{ fromJson(needs.build-matrix.outputs.matrix) }}
@@ -107,12 +108,12 @@ jobs:
107108 python-version : ${{ matrix.python-version }}
108109
109110 - name : Run type-check
110- run : poetry run nox -s lint:typing
111+ run : poetry run -- nox -s lint:typing
111112
112113 Security :
113114 name : Security Checks (Python-${{ matrix.python-version }})
114115 needs : [ Version-Check, build-matrix ]
115- runs-on : ubuntu-latest
116+ runs-on : ubuntu-24.04
116117 strategy :
117118 fail-fast : false
118119 matrix : ${{ fromJson(needs.build-matrix.outputs.matrix) }}
@@ -127,7 +128,7 @@ jobs:
127128 python-version : ${{ matrix.python-version }}
128129
129130 - name : Run security linter
130- run : poetry run nox -s lint:security
131+ run : poetry run -- nox -s lint:security
131132
132133 - name : Upload Artifacts
133134@@ -136,28 +137,9 @@ jobs:
136137 path : .security.json
137138 include-hidden-files : true
138139
139- Vulnerabilities :
140- name : Check Vulnerabilities (Python-${{ matrix.python-version }})
141- needs : [ Version-Check, build-matrix ]
142- runs-on : ubuntu-latest
143- strategy :
144- matrix : ${{ fromJson(needs.build-matrix.outputs.matrix) }}
145-
146- steps :
147- - name : SCM Checkout
148- uses : actions/checkout@v4
149-
150- - name : Setup Python & Poetry Environment
151- uses : ./.github/actions/python-environment
152- with :
153- python-version : ${{ matrix.python-version }}
154-
155- - name : Run Package vulnerabilities Check
156- run : poetry run nox -s dependency:audit
157-
158140 Format :
159141 name : Format Check
160- runs-on : ubuntu-latest
142+ runs-on : ubuntu-24.04
161143
162144 steps :
163145 - name : SCM Checkout
@@ -169,12 +151,12 @@ jobs:
169151 python-version : " 3.9"
170152
171153 - name : Run format check
172- run : poetry run nox -s project:format
154+ run : poetry run -- nox -s project:format
173155
174156 Tests :
175157 name : Unit-Tests (Python-${{ matrix.python-version }})
176158 needs : [ Documentation, Lint, Type-Check, Security, Format, build-matrix ]
177- runs-on : ubuntu-latest
159+ runs-on : ubuntu-24.04
178160 env :
179161 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
180162 strategy :
@@ -191,7 +173,7 @@ jobs:
191173 python-version : ${{ matrix.python-version }}
192174
193175 - name : Run Tests and Collect Coverage
194- run : poetry run nox -s test:unit -- -- --coverage
176+ run : poetry run -- nox -s test:unit -- --coverage
195177
196178 - name : Upload Artifacts
197179
0 commit comments