diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index af91201aac4..efdc8b0da16 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -27,7 +27,7 @@ concurrency: env: DOCUMENTATION_CNAME: 'dpf.docs.pyansys.com' - MAIN_PYTHON_VERSION: '3.9' + MAIN_PYTHON_VERSION: '3.10' jobs: debug: @@ -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}} @@ -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}} @@ -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 @@ -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 @@ -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 @@ -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 @@ -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 @@ -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 @@ -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 @@ -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 diff --git a/.github/workflows/ci_release.yml b/.github/workflows/ci_release.yml index 450cfb64c66..13fad27c9fb 100644 --- a/.github/workflows/ci_release.yml +++ b/.github/workflows/ci_release.yml @@ -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 || '' }} @@ -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 || '' }} @@ -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 @@ -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 @@ -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 @@ -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 @@ -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 @@ -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 @@ -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 @@ -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" diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index bda94d69df8..d61606c844d 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -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" diff --git a/.github/workflows/examples.yml b/.github/workflows/examples.yml index 9ef7ee947a3..43745875746 100644 --- a/.github/workflows/examples.yml +++ b/.github/workflows/examples.yml @@ -7,7 +7,7 @@ on: python_versions: required: false type: string - default: '["3.9"]' + default: '["3.10"]' ANSYS_VERSION: required: false type: string @@ -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 diff --git a/.github/workflows/examples_docker.yml b/.github/workflows/examples_docker.yml index 3c8ea4f51d8..59161839453 100644 --- a/.github/workflows/examples_docker.yml +++ b/.github/workflows/examples_docker.yml @@ -7,7 +7,7 @@ on: python_versions: required: false type: string - default: '["3.9"]' + default: '["3.10"]' ANSYS_VERSION: required: false type: string @@ -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 diff --git a/.github/workflows/pydpf-post.yml b/.github/workflows/pydpf-post.yml index 3e21beeb98f..956b800cdd9 100644 --- a/.github/workflows/pydpf-post.yml +++ b/.github/workflows/pydpf-post.yml @@ -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 diff --git a/.github/workflows/test_docker.yml b/.github/workflows/test_docker.yml index da61b259aa4..c31f03d391b 100644 --- a/.github/workflows/test_docker.yml +++ b/.github/workflows/test_docker.yml @@ -40,7 +40,7 @@ jobs: strategy: fail-fast: false matrix: - python-version: ["3.9"] + python-version: ["3.10"] os: ["ubuntu-latest"] steps: diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 3d0da63bfd0..3e6121ddd5b 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -7,7 +7,7 @@ on: python_versions: required: false type: string - default: '["3.9"]' + default: '["3.10"]' ANSYS_VERSION: required: false type: string @@ -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 @@ -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 diff --git a/tox.ini b/tox.ini index ade6eba8c11..791388bef5c 100644 --- a/tox.ini +++ b/tox.ini @@ -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 "\