Skip to content

ci: drop py39 in pipelines and add 3.12 #2160

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 18 commits into from
Mar 31, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 11 additions & 11 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ concurrency:

env:
DOCUMENTATION_CNAME: 'dpf.docs.pyansys.com'
MAIN_PYTHON_VERSION: '3.9'
MAIN_PYTHON_VERSION: '3.10'

jobs:
debug:
Expand Down Expand Up @@ -106,7 +106,7 @@ jobs:
needs: pick_server_suffix
with:
ANSYS_VERSION: ${{ github.event.inputs.ansys_version || '252' }}
python_versions: '["3.9"]'
python_versions: '["3.10"]'
wheel: true
wheelhouse: false
standalone_suffix: ${{needs.pick_server_suffix.outputs.suffix}}
Expand All @@ -117,7 +117,7 @@ jobs:
needs: pick_server_suffix
with:
ANSYS_VERSION: ${{ github.event.inputs.ansys_version || '252' }}
python_versions: '["3.9"]'
python_versions: '["3.10"]'
wheel: true
wheelhouse: false
standalone_suffix: ${{needs.pick_server_suffix.outputs.suffix}}
Expand All @@ -139,7 +139,7 @@ jobs:
needs: pick_server_suffix
with:
ANSYS_VERSION: ${{ github.event.inputs.ansys_version || '252' }}
python_versions: '["3.9"]'
python_versions: '["3.10"]'
standalone_suffix: ${{needs.pick_server_suffix.outputs.suffix}}
secrets: inherit

Expand Down Expand Up @@ -175,7 +175,7 @@ jobs:
needs: pick_server_suffix
with:
ANSYS_VERSION: ${{ github.event.inputs.ansys_version || '252' }}
python_versions: '["3.9"]'
python_versions: '["3.10"]'
standalone_suffix: ${{needs.pick_server_suffix.outputs.suffix}}
secrets: inherit

Expand All @@ -185,7 +185,7 @@ jobs:
uses: ./.github/workflows/tests.yml
with:
ANSYS_VERSION: "251"
python_versions: '["3.9"]'
python_versions: '["3.10"]'
DOCSTRING: false
standalone_suffix: ''
secrets: inherit
Expand All @@ -196,7 +196,7 @@ jobs:
uses: ./.github/workflows/tests.yml
with:
ANSYS_VERSION: "242"
python_versions: '["3.9"]'
python_versions: '["3.10"]'
DOCSTRING: false
standalone_suffix: ''
secrets: inherit
Expand All @@ -207,7 +207,7 @@ jobs:
uses: ./.github/workflows/tests.yml
with:
ANSYS_VERSION: "241"
python_versions: '["3.9"]'
python_versions: '["3.10"]'
DOCSTRING: false
standalone_suffix: '.sp01'
secrets: inherit
Expand All @@ -218,7 +218,7 @@ jobs:
uses: ./.github/workflows/tests.yml
with:
ANSYS_VERSION: "232"
python_versions: '["3.9"]'
python_versions: '["3.10"]'
DOCSTRING: false
standalone_suffix: ''
secrets: inherit
Expand All @@ -229,7 +229,7 @@ jobs:
uses: ./.github/workflows/tests.yml
with:
ANSYS_VERSION: "231"
python_versions: '["3.9"]'
python_versions: '["3.10"]'
DOCSTRING: false
secrets: inherit

Expand All @@ -239,7 +239,7 @@ jobs:
uses: ./.github/workflows/tests.yml
with:
ANSYS_VERSION: "222"
python_versions: '["3.9"]'
python_versions: '["3.10"]'
DOCSTRING: false
secrets: inherit

Expand Down
28 changes: 14 additions & 14 deletions .github/workflows/ci_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,11 +73,11 @@ jobs:
name: ${{ steps.wheel.outputs.wheel_name }}
path: dist/${{ steps.wheel.outputs.wheel_name }}

tests_3_9:
tests_3_10:
uses: ./.github/workflows/tests.yml
with:
ANSYS_VERSION: ${{ github.event.inputs.ansys_version || '251' }}
python_versions: '["3.9"]'
python_versions: '["3.10"]'
wheel: true
wheelhouse: true
standalone_suffix: ${{ github.event.inputs.standalone_branch_suffix || '' }}
Expand All @@ -87,18 +87,18 @@ jobs:
uses: ./.github/workflows/tests.yml
with:
ANSYS_VERSION: ${{ github.event.inputs.ansys_version || '251' }}
python_versions: '["3.10", "3.11"]'
python_versions: '["3.11", "3.12"]'
DOCSTRING: false
wheel: false
wheelhouse: true
standalone_suffix: ${{ github.event.inputs.standalone_branch_suffix || '' }}
secrets: inherit

tests_any_3_9:
tests_any_3_10:
uses: ./.github/workflows/tests.yml
with:
ANSYS_VERSION: ${{ github.event.inputs.ansys_version || '251' }}
python_versions: '["3.9"]'
python_versions: '["3.10"]'
wheel: true
wheelhouse: false
standalone_suffix: ${{ github.event.inputs.standalone_branch_suffix || '' }}
Expand All @@ -109,7 +109,7 @@ jobs:
uses: ./.github/workflows/tests.yml
with:
ANSYS_VERSION: ${{ github.event.inputs.ansys_version || '251' }}
python_versions: '["3.10", "3.11"]'
python_versions: '["3.11", "3.12"]'
DOCSTRING: false
wheel: false
wheelhouse: false
Expand All @@ -129,7 +129,7 @@ jobs:
uses: ./.github/workflows/examples.yml
with:
ANSYS_VERSION: ${{ github.event.inputs.ansys_version || '251' }}
python_versions: '["3.9", "3.10", "3.11"]'
python_versions: '["3.10", "3.11", "3.12"]'
standalone_suffix: ${{ github.event.inputs.standalone_branch_suffix || '' }}
secrets: inherit

Expand All @@ -138,7 +138,7 @@ jobs:
uses: ./.github/workflows/tests.yml
with:
ANSYS_VERSION: "242"
python_versions: '["3.9"]'
python_versions: '["3.10"]'
DOCSTRING: false
secrets: inherit

Expand All @@ -147,7 +147,7 @@ jobs:
uses: ./.github/workflows/tests.yml
with:
ANSYS_VERSION: "241"
python_versions: '["3.9"]'
python_versions: '["3.10"]'
standalone_suffix: '.sp01'
DOCSTRING: false
secrets: inherit
Expand All @@ -157,7 +157,7 @@ jobs:
uses: ./.github/workflows/tests.yml
with:
ANSYS_VERSION: "232"
python_versions: '["3.9"]'
python_versions: '["3.10"]'
DOCSTRING: false
secrets: inherit

Expand All @@ -166,7 +166,7 @@ jobs:
uses: ./.github/workflows/tests.yml
with:
ANSYS_VERSION: "231"
python_versions: '["3.9"]'
python_versions: '["3.10"]'
DOCSTRING: false
secrets: inherit

Expand All @@ -175,7 +175,7 @@ jobs:
uses: ./.github/workflows/tests.yml
with:
ANSYS_VERSION: "222"
python_versions: '["3.9"]'
python_versions: '["3.10"]'
DOCSTRING: false
secrets: inherit

Expand Down Expand Up @@ -236,14 +236,14 @@ jobs:
uses: ./.github/workflows/examples_docker.yml
with:
ANSYS_VERSION: ${{ github.event.inputs.ansys_version || '251' }}
python_versions: '["3.9", "3.10", "3.11"]'
python_versions: '["3.10", "3.11", "3.12"]'
standalone_suffix: ${{ github.event.inputs.standalone_branch_suffix || '' }}
secrets: inherit

draft_release:
name: "Draft Release"
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v')
needs: [style, tests, tests_3_9, tests_any, tests_any_3_9, docs, examples, retro_232, retro_231, retro_222, docker_tests]
needs: [style, tests, tests_3_10, tests_any, tests_any_3_10, docs, examples, retro_232, retro_231, retro_222, docker_tests]
runs-on: ubuntu-latest
steps:
- name: "Download artifacts"
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@ on:
env:
PACKAGE_NAME: ansys-dpf-core
MODULE: core
VTK_OSMESA_VERSION: "9.2.20230527.dev0"
jobs:
doc-style:
name: "Check doc style"
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/examples.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:
python_versions:
required: false
type: string
default: '["3.9"]'
default: '["3.10"]'
ANSYS_VERSION:
required: false
type: string
Expand All @@ -24,7 +24,7 @@ on:
description: "Python interpreters to test."
required: true
type: string
default: '["3.9"]'
default: '["3.10"]'
ANSYS_VERSION:
description: "ANSYS version to run."
required: true
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/examples_docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:
python_versions:
required: false
type: string
default: '["3.9"]'
default: '["3.10"]'
ANSYS_VERSION:
required: false
type: string
Expand All @@ -24,7 +24,7 @@ on:
description: "Python interpreters to test."
required: true
type: string
default: '["3.9"]'
default: '["3.10"]'
ANSYS_VERSION:
description: "ANSYS version to run."
required: true
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pydpf-post.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ jobs:
fail-fast: false
matrix:
os: ["windows-latest", "ubuntu-latest"]
python-version: ["3.9"]
python-version: ["3.10"]

steps:
- uses: actions/checkout@v4
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test_docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ jobs:
strategy:
fail-fast: false
matrix:
python-version: ["3.9"]
python-version: ["3.10"]
os: ["ubuntu-latest"]

steps:
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:
python_versions:
required: false
type: string
default: '["3.9"]'
default: '["3.10"]'
ANSYS_VERSION:
required: false
type: string
Expand Down Expand Up @@ -41,7 +41,7 @@ on:
description: "Python interpreters to test."
required: true
type: string
default: '["3.9", "3.10", "3.11"]'
default: '["3.10", "3.11", "3.12"]'
ANSYS_VERSION:
description: "ANSYS version"
required: true
Expand Down Expand Up @@ -224,13 +224,13 @@ jobs:
run: |
if [ $MODE == 'PIP' ]; then
if [ ${{ matrix.os }} == 'ubuntu-latest' ]; then
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"
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"
else
echo 'TOX_EXTRA_ARG=--installpkg dist/${{ steps.wheel.outputs.wheel_name }} -x testenv.deps+="-e dpf-standalone/v${{inputs.ANSYS_VERSION}}"' >> "$GITHUB_OUTPUT"
fi
else
if [ ${{ matrix.os }} == 'ubuntu-latest' ]; then
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"
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"
else
echo 'TOX_EXTRA_ARG=--installpkg dist/${{ steps.wheel.outputs.wheel_name }}' >> "$GITHUB_OUTPUT"
fi
Expand Down
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ commands =

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

# Clean files from previous build
html: python -c "\
Expand Down
Loading