Skip to content

Commit e055e67

Browse files
ci: drop py39 in pipelines and add 3.12 (#2160)
* Bump sphinx from 8.1.3 to 8.2.3 in /requirements Bumps [sphinx](https://github.com/sphinx-doc/sphinx) from 8.1.3 to 8.2.3. - [Release notes](https://github.com/sphinx-doc/sphinx/releases) - [Changelog](https://github.com/sphinx-doc/sphinx/blob/master/CHANGES.rst) - [Commits](sphinx-doc/sphinx@v8.1.3...v8.2.3) --- updated-dependencies: - dependency-name: sphinx dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> * fix: bump python version * fix: nbsphinx dependency dropped * ci: drop 3.9 in pipelines and add 3.12 * ci: drop nbsphinx * ci: use more recent osmesa releases * ci: change doc python version * ci: small edits * ci: small edits * ci: final edits --------- Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
1 parent 14a94df commit e055e67

File tree

9 files changed

+36
-37
lines changed

9 files changed

+36
-37
lines changed

.github/workflows/ci.yml

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ concurrency:
2727

2828
env:
2929
DOCUMENTATION_CNAME: 'dpf.docs.pyansys.com'
30-
MAIN_PYTHON_VERSION: '3.9'
30+
MAIN_PYTHON_VERSION: '3.10'
3131

3232
jobs:
3333
debug:
@@ -106,7 +106,7 @@ jobs:
106106
needs: pick_server_suffix
107107
with:
108108
ANSYS_VERSION: ${{ github.event.inputs.ansys_version || '252' }}
109-
python_versions: '["3.9"]'
109+
python_versions: '["3.10"]'
110110
wheel: true
111111
wheelhouse: false
112112
standalone_suffix: ${{needs.pick_server_suffix.outputs.suffix}}
@@ -117,7 +117,7 @@ jobs:
117117
needs: pick_server_suffix
118118
with:
119119
ANSYS_VERSION: ${{ github.event.inputs.ansys_version || '252' }}
120-
python_versions: '["3.9"]'
120+
python_versions: '["3.10"]'
121121
wheel: true
122122
wheelhouse: false
123123
standalone_suffix: ${{needs.pick_server_suffix.outputs.suffix}}
@@ -139,7 +139,7 @@ jobs:
139139
needs: pick_server_suffix
140140
with:
141141
ANSYS_VERSION: ${{ github.event.inputs.ansys_version || '252' }}
142-
python_versions: '["3.9"]'
142+
python_versions: '["3.10"]'
143143
standalone_suffix: ${{needs.pick_server_suffix.outputs.suffix}}
144144
secrets: inherit
145145

@@ -175,7 +175,7 @@ jobs:
175175
needs: pick_server_suffix
176176
with:
177177
ANSYS_VERSION: ${{ github.event.inputs.ansys_version || '252' }}
178-
python_versions: '["3.9"]'
178+
python_versions: '["3.10"]'
179179
standalone_suffix: ${{needs.pick_server_suffix.outputs.suffix}}
180180
secrets: inherit
181181

@@ -185,7 +185,7 @@ jobs:
185185
uses: ./.github/workflows/tests.yml
186186
with:
187187
ANSYS_VERSION: "251"
188-
python_versions: '["3.9"]'
188+
python_versions: '["3.10"]'
189189
DOCSTRING: false
190190
standalone_suffix: ''
191191
secrets: inherit
@@ -196,7 +196,7 @@ jobs:
196196
uses: ./.github/workflows/tests.yml
197197
with:
198198
ANSYS_VERSION: "242"
199-
python_versions: '["3.9"]'
199+
python_versions: '["3.10"]'
200200
DOCSTRING: false
201201
standalone_suffix: ''
202202
secrets: inherit
@@ -207,7 +207,7 @@ jobs:
207207
uses: ./.github/workflows/tests.yml
208208
with:
209209
ANSYS_VERSION: "241"
210-
python_versions: '["3.9"]'
210+
python_versions: '["3.10"]'
211211
DOCSTRING: false
212212
standalone_suffix: '.sp01'
213213
secrets: inherit
@@ -218,7 +218,7 @@ jobs:
218218
uses: ./.github/workflows/tests.yml
219219
with:
220220
ANSYS_VERSION: "232"
221-
python_versions: '["3.9"]'
221+
python_versions: '["3.10"]'
222222
DOCSTRING: false
223223
standalone_suffix: ''
224224
secrets: inherit
@@ -229,7 +229,7 @@ jobs:
229229
uses: ./.github/workflows/tests.yml
230230
with:
231231
ANSYS_VERSION: "231"
232-
python_versions: '["3.9"]'
232+
python_versions: '["3.10"]'
233233
DOCSTRING: false
234234
secrets: inherit
235235

@@ -239,7 +239,7 @@ jobs:
239239
uses: ./.github/workflows/tests.yml
240240
with:
241241
ANSYS_VERSION: "222"
242-
python_versions: '["3.9"]'
242+
python_versions: '["3.10"]'
243243
DOCSTRING: false
244244
secrets: inherit
245245

.github/workflows/ci_release.yml

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -73,11 +73,11 @@ jobs:
7373
name: ${{ steps.wheel.outputs.wheel_name }}
7474
path: dist/${{ steps.wheel.outputs.wheel_name }}
7575

76-
tests_3_9:
76+
tests_3_10:
7777
uses: ./.github/workflows/tests.yml
7878
with:
7979
ANSYS_VERSION: ${{ github.event.inputs.ansys_version || '251' }}
80-
python_versions: '["3.9"]'
80+
python_versions: '["3.10"]'
8181
wheel: true
8282
wheelhouse: true
8383
standalone_suffix: ${{ github.event.inputs.standalone_branch_suffix || '' }}
@@ -87,18 +87,18 @@ jobs:
8787
uses: ./.github/workflows/tests.yml
8888
with:
8989
ANSYS_VERSION: ${{ github.event.inputs.ansys_version || '251' }}
90-
python_versions: '["3.10", "3.11"]'
90+
python_versions: '["3.11", "3.12"]'
9191
DOCSTRING: false
9292
wheel: false
9393
wheelhouse: true
9494
standalone_suffix: ${{ github.event.inputs.standalone_branch_suffix || '' }}
9595
secrets: inherit
9696

97-
tests_any_3_9:
97+
tests_any_3_10:
9898
uses: ./.github/workflows/tests.yml
9999
with:
100100
ANSYS_VERSION: ${{ github.event.inputs.ansys_version || '251' }}
101-
python_versions: '["3.9"]'
101+
python_versions: '["3.10"]'
102102
wheel: true
103103
wheelhouse: false
104104
standalone_suffix: ${{ github.event.inputs.standalone_branch_suffix || '' }}
@@ -109,7 +109,7 @@ jobs:
109109
uses: ./.github/workflows/tests.yml
110110
with:
111111
ANSYS_VERSION: ${{ github.event.inputs.ansys_version || '251' }}
112-
python_versions: '["3.10", "3.11"]'
112+
python_versions: '["3.11", "3.12"]'
113113
DOCSTRING: false
114114
wheel: false
115115
wheelhouse: false
@@ -129,7 +129,7 @@ jobs:
129129
uses: ./.github/workflows/examples.yml
130130
with:
131131
ANSYS_VERSION: ${{ github.event.inputs.ansys_version || '251' }}
132-
python_versions: '["3.9", "3.10", "3.11"]'
132+
python_versions: '["3.10", "3.11", "3.12"]'
133133
standalone_suffix: ${{ github.event.inputs.standalone_branch_suffix || '' }}
134134
secrets: inherit
135135

@@ -138,7 +138,7 @@ jobs:
138138
uses: ./.github/workflows/tests.yml
139139
with:
140140
ANSYS_VERSION: "242"
141-
python_versions: '["3.9"]'
141+
python_versions: '["3.10"]'
142142
DOCSTRING: false
143143
secrets: inherit
144144

@@ -147,7 +147,7 @@ jobs:
147147
uses: ./.github/workflows/tests.yml
148148
with:
149149
ANSYS_VERSION: "241"
150-
python_versions: '["3.9"]'
150+
python_versions: '["3.10"]'
151151
standalone_suffix: '.sp01'
152152
DOCSTRING: false
153153
secrets: inherit
@@ -157,7 +157,7 @@ jobs:
157157
uses: ./.github/workflows/tests.yml
158158
with:
159159
ANSYS_VERSION: "232"
160-
python_versions: '["3.9"]'
160+
python_versions: '["3.10"]'
161161
DOCSTRING: false
162162
secrets: inherit
163163

@@ -166,7 +166,7 @@ jobs:
166166
uses: ./.github/workflows/tests.yml
167167
with:
168168
ANSYS_VERSION: "231"
169-
python_versions: '["3.9"]'
169+
python_versions: '["3.10"]'
170170
DOCSTRING: false
171171
secrets: inherit
172172

@@ -175,7 +175,7 @@ jobs:
175175
uses: ./.github/workflows/tests.yml
176176
with:
177177
ANSYS_VERSION: "222"
178-
python_versions: '["3.9"]'
178+
python_versions: '["3.10"]'
179179
DOCSTRING: false
180180
secrets: inherit
181181

@@ -236,14 +236,14 @@ jobs:
236236
uses: ./.github/workflows/examples_docker.yml
237237
with:
238238
ANSYS_VERSION: ${{ github.event.inputs.ansys_version || '251' }}
239-
python_versions: '["3.9", "3.10", "3.11"]'
239+
python_versions: '["3.10", "3.11", "3.12"]'
240240
standalone_suffix: ${{ github.event.inputs.standalone_branch_suffix || '' }}
241241
secrets: inherit
242242

243243
draft_release:
244244
name: "Draft Release"
245245
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v')
246-
needs: [style, tests, tests_3_9, tests_any, tests_any_3_9, docs, examples, retro_232, retro_231, retro_222, docker_tests]
246+
needs: [style, tests, tests_3_10, tests_any, tests_any_3_10, docs, examples, retro_232, retro_231, retro_222, docker_tests]
247247
runs-on: ubuntu-latest
248248
steps:
249249
- name: "Download artifacts"

.github/workflows/docs.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@ on:
4444
env:
4545
PACKAGE_NAME: ansys-dpf-core
4646
MODULE: core
47-
VTK_OSMESA_VERSION: "9.2.20230527.dev0"
4847
jobs:
4948
doc-style:
5049
name: "Check doc style"

.github/workflows/examples.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ on:
77
python_versions:
88
required: false
99
type: string
10-
default: '["3.9"]'
10+
default: '["3.10"]'
1111
ANSYS_VERSION:
1212
required: false
1313
type: string
@@ -24,7 +24,7 @@ on:
2424
description: "Python interpreters to test."
2525
required: true
2626
type: string
27-
default: '["3.9"]'
27+
default: '["3.10"]'
2828
ANSYS_VERSION:
2929
description: "ANSYS version to run."
3030
required: true

.github/workflows/examples_docker.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ on:
77
python_versions:
88
required: false
99
type: string
10-
default: '["3.9"]'
10+
default: '["3.10"]'
1111
ANSYS_VERSION:
1212
required: false
1313
type: string
@@ -24,7 +24,7 @@ on:
2424
description: "Python interpreters to test."
2525
required: true
2626
type: string
27-
default: '["3.9"]'
27+
default: '["3.10"]'
2828
ANSYS_VERSION:
2929
description: "ANSYS version to run."
3030
required: true

.github/workflows/pydpf-post.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ jobs:
5656
fail-fast: false
5757
matrix:
5858
os: ["windows-latest", "ubuntu-latest"]
59-
python-version: ["3.9"]
59+
python-version: ["3.10"]
6060

6161
steps:
6262
- uses: actions/checkout@v4

.github/workflows/test_docker.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ jobs:
4040
strategy:
4141
fail-fast: false
4242
matrix:
43-
python-version: ["3.9"]
43+
python-version: ["3.10"]
4444
os: ["ubuntu-latest"]
4545

4646
steps:

.github/workflows/tests.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ on:
77
python_versions:
88
required: false
99
type: string
10-
default: '["3.9"]'
10+
default: '["3.10"]'
1111
ANSYS_VERSION:
1212
required: false
1313
type: string
@@ -41,7 +41,7 @@ on:
4141
description: "Python interpreters to test."
4242
required: true
4343
type: string
44-
default: '["3.9", "3.10", "3.11"]'
44+
default: '["3.10", "3.11", "3.12"]'
4545
ANSYS_VERSION:
4646
description: "ANSYS version"
4747
required: true
@@ -224,13 +224,13 @@ jobs:
224224
run: |
225225
if [ $MODE == 'PIP' ]; then
226226
if [ ${{ matrix.os }} == 'ubuntu-latest' ]; then
227-
echo 'TOX_EXTRA_ARG=--installpkg dist/${{ steps.wheel.outputs.wheel_name }} -x testenv.deps+="-e dpf-standalone/v${{inputs.ANSYS_VERSION}}" -x testenv.commands_pre+="uv pip install --extra-index-url https://wheels.vtk.org vtk-osmesa==9.2.20230527.dev0"' >> "$GITHUB_OUTPUT"
227+
echo 'TOX_EXTRA_ARG=--installpkg dist/${{ steps.wheel.outputs.wheel_name }} -x testenv.deps+="-e dpf-standalone/v${{inputs.ANSYS_VERSION}}" -x testenv.commands_pre+="uv pip install --extra-index-url https://wheels.vtk.org vtk-osmesa==9.3.20240907.dev0"' >> "$GITHUB_OUTPUT"
228228
else
229229
echo 'TOX_EXTRA_ARG=--installpkg dist/${{ steps.wheel.outputs.wheel_name }} -x testenv.deps+="-e dpf-standalone/v${{inputs.ANSYS_VERSION}}"' >> "$GITHUB_OUTPUT"
230230
fi
231231
else
232232
if [ ${{ matrix.os }} == 'ubuntu-latest' ]; then
233-
echo 'TOX_EXTRA_ARG=--installpkg dist/${{ steps.wheel.outputs.wheel_name }} -x testenv.commands_pre+="uv pip install --extra-index-url https://wheels.vtk.org vtk-osmesa==9.2.20230527.dev0"' >> "$GITHUB_OUTPUT"
233+
echo 'TOX_EXTRA_ARG=--installpkg dist/${{ steps.wheel.outputs.wheel_name }} -x testenv.commands_pre+="uv pip install --extra-index-url https://wheels.vtk.org vtk-osmesa==9.3.20240907.dev0"' >> "$GITHUB_OUTPUT"
234234
else
235235
echo 'TOX_EXTRA_ARG=--installpkg dist/${{ steps.wheel.outputs.wheel_name }}' >> "$GITHUB_OUTPUT"
236236
fi

tox.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ commands =
227227

228228
# Ensure vtk compatibility
229229
html: python -m pip uninstall --yes vtk
230-
html: python -m pip install --extra-index-url https://wheels.vtk.org vtk-osmesa==9.2.20230527.dev0
230+
html: python -m pip install --extra-index-url https://wheels.vtk.org vtk-osmesa==9.3.20240907.dev0
231231

232232
# Clean files from previous build
233233
html: python -c "\

0 commit comments

Comments
 (0)