@@ -594,152 +594,6 @@ jobs:
594594 docker logs ${GEO_CONT_NAME}
595595 docker rm ${GEO_CONT_NAME}
596596
597- testing-windows-v1 :
598- name : Testing and coverage (Windows - v1)
599- needs : [smoke-tests]
600- runs-on : windows-latest
601- strategy :
602- fail-fast : false
603- matrix :
604- python-version : ['3.10', '3.13']
605-
606- steps :
607- - uses : actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5.0.1
608- with :
609- persist-credentials : false
610-
611- - name : Set up Python
612- uses : actions/setup-python@e797f83bcb11b83ae66e0230d6156d7c80228e7c # v6.0.0
613- with :
614- python-version : ${{ matrix.python-version }}
615-
616- - name : Set up headless display
617- uses : pyvista/setup-headless-display-action@7d84ae825e6d9297a8e99bdbbae20d1b919a0b19 # v4.2
618-
619- - name : Install packages for testing
620- run : |
621- python -m pip install --upgrade pip
622- pip install --upgrade build wheel
623- pip install -e . --group tests
624-
625- - name : Login to GitHub Container Registry
626- uses : docker/login-action@5e57cd118135c172c3672efd75eb46360885c0ef # v3.6.0
627- with :
628- registry : ghcr.io
629- username : ${{ github.actor }}
630- password : ${{ secrets.GITHUB_TOKEN }}
631-
632- - name : Download Geometry service container (if needed)
633- env :
634- FULL_IMAGE_NAME : " ${{ env.ANSRV_GEO_IMAGE }}:core-windows-latest"
635- run : |
636- Write-Host "Pulling Docker image: $env:FULL_IMAGE_NAME"
637- docker pull $env:FULL_IMAGE_NAME
638-
639- - name : Start Geometry service and verify start
640- env :
641- FULL_IMAGE_NAME : " ${{ env.ANSRV_GEO_IMAGE }}:core-windows-latest"
642- PORT_MAPPING : " ${{ env.ANSRV_GEO_PORT }}:50051"
643- TRANSPORT_MODE_SELECTION : ${{ secrets.TRANSPORT_MODE_SELECTION }}
644- run : |
645- # Write command to file launch.txt for sanitizing purposes
646- echo "docker run --detach --name $env:GEO_CONT_NAME -e LICENSE_SERVER=$env:ANSRV_GEO_LICENSE_SERVER -p $env:PORT_MAPPING $env:FULL_IMAGE_NAME $env:TRANSPORT_MODE_SELECTION" | Out-File -FilePath launch.txt
647- # Read the file and execute the command
648- $command = Get-Content -Path launch.txt | Select-String -Pattern "docker run"
649- Invoke-Expression $command.Line
650- Start-Sleep -Seconds 10
651- python -c "from ansys.geometry.core.connection.validate import validate; validate()"
652-
653- - name : Restore images cache
654- uses : actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0
655- with :
656- path : .\tests\integration\image_cache
657- key : pyvista-image-cache-${{ runner.os }}-v-${{ env.RESET_IMAGE_CACHE }}-${{ hashFiles('pyproject.toml') }}
658- restore-keys : pyvista-image-cache-${{ runner.os }}-v-${{ env.RESET_IMAGE_CACHE }}
659- lookup-only : false # zizmor: ignore[cache-poisoning]
660-
661- - name : Testing
662- timeout-minutes : 20 # Sometimes hangs...
663- run : |
664- pytest -v --proto-version=v1
665-
666- - name : Stop the Geometry service
667- if : always()
668- run : |
669- docker stop $env:GEO_CONT_NAME
670- docker logs $env:GEO_CONT_NAME
671- docker rm $env:GEO_CONT_NAME
672-
673- testing-linux-v1 :
674- name : Testing and coverage (Linux - v1)
675- needs : [smoke-tests]
676- runs-on : ubuntu-latest
677- strategy :
678- fail-fast : false
679- matrix :
680- python-version : ['3.10', '3.13']
681-
682- steps :
683- - uses : actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5.0.1
684- with :
685- persist-credentials : false
686-
687- - name : Set up Python
688- uses : actions/setup-python@e797f83bcb11b83ae66e0230d6156d7c80228e7c # v6.0.0
689- with :
690- python-version : ${{ matrix.python-version }}
691-
692- - name : Set up headless display
693- uses : pyvista/setup-headless-display-action@7d84ae825e6d9297a8e99bdbbae20d1b919a0b19 # v4.2
694-
695- - name : Install packages for testing
696- run : |
697- python -m pip install --upgrade pip
698- pip install --upgrade build wheel
699- pip install -e . --group tests
700-
701- - name : Login to GitHub Container Registry
702- uses : docker/login-action@5e57cd118135c172c3672efd75eb46360885c0ef # v3.6.0
703- with :
704- registry : ghcr.io
705- username : ${{ github.actor }}
706- password : ${{ secrets.GITHUB_TOKEN }}
707-
708- - name : Download Geometry service container (if needed)
709- env :
710- FULL_IMAGE_NAME : " ${{ env.ANSRV_GEO_IMAGE }}:core-linux-latest"
711- run : |
712- echo "Pulling Docker image: ${FULL_IMAGE_NAME}"
713- docker pull ${FULL_IMAGE_NAME}
714-
715- - name : Start Geometry service and verify start
716- env :
717- FULL_IMAGE_NAME : " ${{ env.ANSRV_GEO_IMAGE }}:core-linux-latest"
718- TRANSPORT_MODE_SELECTION : ${{ secrets.TRANSPORT_MODE_SELECTION }}
719- run : |
720- docker run --detach --name ${GEO_CONT_NAME} -e LICENSE_SERVER=${ANSRV_GEO_LICENSE_SERVER} -p ${ANSRV_GEO_PORT}:50051 ${FULL_IMAGE_NAME} ${TRANSPORT_MODE_SELECTION}
721- python -c "from ansys.geometry.core.connection.validate import validate; validate()"
722-
723- - name : Restore images cache
724- uses : actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0
725- with :
726- path : tests/integration/image_cache
727- key : pyvista-image-cache-${{ runner.os }}-v-${{ env.RESET_IMAGE_CACHE }}-${{ hashFiles('pyproject.toml') }}
728- restore-keys : pyvista-image-cache-${{ runner.os }}-v-${{ env.RESET_IMAGE_CACHE }}
729- lookup-only : false # zizmor: ignore[cache-poisoning]
730-
731- - name : Testing
732- timeout-minutes : 20 # Sometimes hangs...
733- run : |
734- pytest -v --proto-version=v1
735-
736- - name : Stop the Geometry service
737- if : always()
738- run : |
739- docker stop ${GEO_CONT_NAME}
740- docker logs ${GEO_CONT_NAME}
741- docker rm ${GEO_CONT_NAME}
742-
743597 package :
744598 name : Package library
745599 needs : [testing-windows, testing-linux, testing-min-reqs, testing-no-graphics, docs]
0 commit comments