8282 - name : PyAnsys documentation style checks
8383 uses : ansys/actions/doc-style@c2fa7c93f6883114e0e643599431b33d29f0b13f # v10.1.4
8484 with :
85- token : ${{ secrets.GITHUB_TOKEN }}
85+ token : ${{ secrets.GITHUB_TOKEN }}
8686
8787 smoke-tests :
8888 name : Build and Smoke tests
@@ -157,7 +157,6 @@ jobs:
157157 touch ${CONTAINER_UNSTABLE}.json
158158 fi
159159
160-
161160 # Check if the manifests are the same (and if so, create an output that will skip the next job)
162161 if diff ${CONTAINER_STABLE}.json ${CONTAINER_UNSTABLE}.json; then
163162 echo "${SERVICE_NAME} container manifests are the same... skipping"
@@ -229,7 +228,7 @@ jobs:
229228 run : |
230229 python -m pip install --upgrade pip
231230 pip install --upgrade build wheel
232- pip install -e .[ tests]
231+ pip install -e . --group tests
233232
234233 - name : Login to GitHub Container Registry
235234 if : env.SKIP_UNSTABLE == 'false'
@@ -269,11 +268,11 @@ jobs:
269268 path : .\tests\integration\image_cache
270269 key : pyvista-image-cache-${{ runner.os }}-v-${{ env.RESET_IMAGE_CACHE }}-${{ hashFiles('pyproject.toml') }}
271270 restore-keys : pyvista-image-cache-${{ runner.os }}-v-${{ env.RESET_IMAGE_CACHE }}
272- lookup-only : false # zizmor: ignore[cache-poisoning]
271+ lookup-only : false # zizmor: ignore[cache-poisoning]
273272
274273 - name : Testing
275274 if : env.SKIP_UNSTABLE == 'false'
276- timeout-minutes : 20 # Sometimes hangs...
275+ timeout-minutes : 20 # Sometimes hangs...
277276 run : |
278277 pytest -v
279278
@@ -350,6 +349,7 @@ jobs:
350349 needs-quarto : true
351350 dependencies : ' pandoc'
352351 sphinxopts : ' -j 1 -W --color'
352+ group-dependencies-name : " doc"
353353
354354 - name : Stop the Geometry service
355355 if : always()
@@ -380,7 +380,7 @@ jobs:
380380 env :
381381 DOCKER_IMAGE : ${{ matrix.docker-image }}
382382 SKIP_CORE_LINUX : ${{ needs.manifests.outputs.skip_core_linux }}
383- VARS_SKIP_UNSTABLE_CONTAINERS_TEMPORARILY : ${{ vars.SKIP_UNSTABLE_CONTAINERS_TEMPORARILY }}
383+ VARS_SKIP_UNSTABLE_CONTAINERS_TEMPORARILY : ${{ vars.SKIP_UNSTABLE_CONTAINERS_TEMPORARILY}}
384384 run : |
385385 # Choose the manifests output to consider (for Core service)
386386 # based on the matrix value
@@ -436,7 +436,7 @@ jobs:
436436 path : tests/integration/image_cache
437437 key : pyvista-image-cache-${{ runner.os }}-v-${{ env.RESET_IMAGE_CACHE }}-${{ hashFiles('pyproject.toml') }}
438438 restore-keys : pyvista-image-cache-${{ runner.os }}-v-${{ env.RESET_IMAGE_CACHE }}
439- lookup-only : false # zizmor: ignore[cache-poisoning]
439+ lookup-only : false # zizmor: ignore[cache-poisoning]
440440
441441 - name : Run pytest
442442 if : env.SKIP_UNSTABLE == 'false'
@@ -447,6 +447,7 @@ jobs:
447447 python-version : ${{ env.MAIN_PYTHON_VERSION }}
448448 checkout : false
449449 randomize : true
450+ group-dependencies-name : " tests"
450451
451452 - name : Upload coverage to Codecov
452453 uses : codecov/codecov-action@5a1091511ad55cbe89839c7260b706298ca349f7 # v5.5.1
@@ -516,8 +517,7 @@ jobs:
516517 - name : Install minimum requirements
517518 run : |
518519 python -m pip install --upgrade pip
519- pip install -e .[all,tests-minimal]
520- pip install pytest
520+ pip install -e .[all] --group tests-minimal
521521
522522 - name : Start Geometry service and verify start
523523 env :
@@ -569,7 +569,7 @@ jobs:
569569 - name : Install minimum requirements
570570 run : |
571571 python -m pip install --upgrade pip
572- pip install -e .[ tests-minimal]
572+ pip install -e . --group tests-minimal
573573 # Uninstall pytest-pyvista (not needed for these tests)
574574 pip uninstall -y pytest-pyvista
575575 # Installing docker (needed for the tests)
@@ -610,9 +610,9 @@ jobs:
610610 python-version : ${{ env.MAIN_PYTHON_VERSION }}
611611 attest-provenance : true
612612
613- # =================================================================================================
614- # vvvvvvvvvvvvvvvvvvvvvvvvvvvvvv RUNNING ON SELF-HOSTED RUNNER vvvvvvvvvvvvvvvvvvvvvvvvvvvvvv
615- # =================================================================================================
613+ # =================================================================================================
614+ # vvvvvvvvvvvvvvvvvvvvvvvvvvvvvv RUNNING ON SELF-HOSTED RUNNER vvvvvvvvvvvvvvvvvvvvvvvvvvvvvv
615+ # =================================================================================================
616616
617617 fetch-release-artifacts :
618618 name : Fetch release artifacts
@@ -734,23 +734,23 @@ jobs:
734734 if : runner.name == 'pygeometry-ci-2'
735735 env :
736736 LICENSE_SERVER_INTERNAL : ${{ secrets.LICENSE_SERVER_INTERNAL }}
737- run :
737+ run : |
738738 echo "ANSRV_GEO_LICENSE_SERVER=$env:LICENSE_SERVER_INTERNAL" | Out-File -FilePath $env:GITHUB_ENV -Append
739739
740740 - name : Validate connection using PyAnsys Geometry
741741 run : |
742742 python -m venv .venv
743743 .\.venv\Scripts\Activate.ps1
744744 python -m pip install --upgrade pip
745- pip install -e .[ tests]
745+ pip install -e . --group tests
746746
747747 - name : Restore images cache
748748 uses : actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0
749749 with :
750750 path : .\tests\integration\image_cache
751751 key : pyvista-image-cache-${{ runner.os }}-v-${{ env.RESET_IMAGE_CACHE }}-${{ hashFiles('pyproject.toml') }}
752752 restore-keys : pyvista-image-cache-${{ runner.os }}-v-${{ env.RESET_IMAGE_CACHE }}
753- lookup-only : false # zizmor: ignore[cache-poisoning]
753+ lookup-only : false # zizmor: ignore[cache-poisoning]
754754
755755 - name : Start Geometry service and verify start
756756 env :
@@ -767,7 +767,7 @@ jobs:
767767 python -c "from ansys.geometry.core.connection.validate import validate; validate()"
768768
769769 - name : Testing
770- timeout-minutes : 20 # On Windows self-hosted runners, sometimes hangs...
770+ timeout-minutes : 20 # On Windows self-hosted runners, sometimes hangs...
771771 run : |
772772 .\.venv\Scripts\Activate.ps1
773773 pytest -v --use-existing-service=yes
@@ -807,9 +807,9 @@ jobs:
807807 docker image rm ghcr.io/ansys/geometry:windows-tmp
808808 docker system prune -f
809809
810- # =================================================================================================
811- # ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ RUNNING ON SELF-HOSTED RUNNER ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
812- # =================================================================================================
810+ # =================================================================================================
811+ # ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ RUNNING ON SELF-HOSTED RUNNER ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
812+ # =================================================================================================
813813
814814 build-linux-container :
815815 name : Building Geometry Service - Linux
@@ -843,7 +843,7 @@ jobs:
843843 - name : Validate connection using PyAnsys Geometry
844844 run : |
845845 python -m pip install --upgrade pip
846- pip install -e .[ tests]
846+ pip install -e . --group tests
847847
848848 - name : Start Geometry service and verify start
849849 env :
@@ -858,7 +858,7 @@ jobs:
858858 path : .\tests\integration\image_cache
859859 key : pyvista-image-cache-${{ runner.os }}-v-${{ env.RESET_IMAGE_CACHE }}-${{ hashFiles('pyproject.toml') }}
860860 restore-keys : pyvista-image-cache-${{ runner.os }}-v-${{ env.RESET_IMAGE_CACHE }}
861- lookup-only : false # zizmor: ignore[cache-poisoning]
861+ lookup-only : false # zizmor: ignore[cache-poisoning]
862862
863863 - name : Run pytest
864864 uses : ansys/actions/tests-pytest@c2fa7c93f6883114e0e643599431b33d29f0b13f # v10.1.4
@@ -869,6 +869,7 @@ jobs:
869869 pytest-extra-args : " --use-existing-service=yes"
870870 checkout : false
871871 randomize : true
872+ group-dependencies-name : " tests"
872873
873874 - name : " Compressing Linux Dockerfile"
874875 uses : vimtor/action-zip@1379ea20d4c5705669ba81fd626dd01b1c738f26 # v1.2
@@ -938,8 +939,10 @@ jobs:
938939 upload_dev_docs :
939940 name : Upload dev documentation
940941 if : github.ref == 'refs/heads/main'
941- runs-on : ubuntu-latest
942942 needs : [package]
943+ runs-on : ubuntu-latest
944+ permissions :
945+ contents : write
943946 steps :
944947 - name : Deploy the latest documentation
945948 uses : ansys/actions/doc-deploy-dev@c2fa7c93f6883114e0e643599431b33d29f0b13f # v10.1.4
@@ -952,8 +955,10 @@ jobs:
952955 upload_docs_release :
953956 name : Upload release documentation
954957 if : github.event_name == 'push' && contains(github.ref, 'refs/tags')
955- runs-on : ubuntu-latest
956958 needs : [release, release-pypi]
959+ runs-on : ubuntu-latest
960+ permissions :
961+ contents : write
957962 steps :
958963 - name : Deploy the stable documentation
959964 uses : ansys/actions/doc-deploy-stable@c2fa7c93f6883114e0e643599431b33d29f0b13f # v10.1.4
0 commit comments