5353 fail-fast : false
5454 matrix :
5555 os : [ubuntu-latest, windows-latest, macos-latest]
56- python-version : ['3.7', '3. 8', '3.9', '3.10', '3.11']
57- should-release :
56+ python-version : ['3.8', '3.9', '3.10', '3.11']
57+ should-release :
5858 - ${{ github.event_name == 'push' && contains(github.ref, 'refs/tags') }}
5959 exclude :
6060 - should-release : false
@@ -110,25 +110,17 @@ jobs:
110110 - name : Download Geometry service container (if needed)
111111 run : docker pull $env:ANSRV_GEO_IMAGE_WINDOWS_TAG
112112
113- - name : Check runner type
113+ - name : Check location of self-hosted runner and define license server accordingly
114114 if : runner.name == 'pygeometry-ci-1'
115- env :
116- INTERNAL_DOCKER_EXTRA_ENVS : ${{ secrets.INTERNAL_DOCKER_EXTRA_ENVS }}
117- run : |
118- $env:INTERNAL_DOCKER_EXTRA_ENVS | Out-File -FilePath env.list -Encoding UTF8
119-
120- - name : Check runner type (not needed)
121- if : runner.name != 'pygeometry-ci-1'
122- run : |
123- echo "" | Out-File -FilePath env.list -Encoding UTF8
115+ run :
116+ echo "ANSRV_GEO_LICENSE_SERVER=${{ secrets.INTERNAL_LICENSE_SERVER }}" | Out-File -FilePath $env:GITHUB_ENV -Append
124117
125118 - name : Start Geometry service and verify start
126119 run : |
127120 .\.venv\Scripts\Activate.ps1
128- $env:ANSRV_GEO_PORT_MAP = $env:ANSRV_GEO_PORT + ":50051"
129- docker run --detach --name $env:GEO_CONT_NAME -e LICENSE_SERVER=$env:ANSRV_GEO_LICENSE_SERVER --env-file .\env.list -p $env:ANSRV_GEO_PORT_MAP $env:ANSRV_GEO_IMAGE_WINDOWS_TAG
121+ docker run --detach --name ${{ env.GEO_CONT_NAME }} -e LICENSE_SERVER=${{ env.ANSRV_GEO_LICENSE_SERVER }} -p ${{ env.ANSRV_GEO_PORT }}:50051 ${{ env.ANSRV_GEO_IMAGE_WINDOWS_TAG }}
130122 python -c "from ansys.geometry.core.connection.validate import validate; validate()"
131-
123+
132124 - name : Restore images cache
133125 uses : actions/cache@v3
134126 with :
@@ -212,23 +204,15 @@ jobs:
212204 - name : Download Geometry service container (if needed)
213205 run : docker pull $env:ANSRV_GEO_IMAGE_WINDOWS_TAG
214206
215- - name : Check runner type
207+ - name : Check location of self-hosted runner and define license server accordingly
216208 if : runner.name == 'pygeometry-ci-1'
217- env :
218- INTERNAL_DOCKER_EXTRA_ENVS : ${{ secrets.INTERNAL_DOCKER_EXTRA_ENVS }}
219- run : |
220- $env:INTERNAL_DOCKER_EXTRA_ENVS | Out-File -FilePath env.list -Encoding UTF8
221-
222- - name : Check runner type (not needed)
223- if : runner.name != 'pygeometry-ci-1'
224- run : |
225- echo "" | Out-File -FilePath env.list -Encoding UTF8
209+ run :
210+ echo "ANSRV_GEO_LICENSE_SERVER=${{ secrets.INTERNAL_LICENSE_SERVER }}" | Out-File -FilePath $env:GITHUB_ENV -Append
226211
227212 - name : Start Geometry service and verify start
228213 run : |
229214 .\.venv\Scripts\Activate.ps1
230- $env:ANSRV_GEO_PORT_MAP = $env:ANSRV_GEO_PORT + ":50051"
231- docker run --detach --name $env:GEO_CONT_NAME -e LICENSE_SERVER=$env:ANSRV_GEO_LICENSE_SERVER --env-file .\env.list -p $env:ANSRV_GEO_PORT_MAP $env:ANSRV_GEO_IMAGE_WINDOWS_TAG
215+ docker run --detach --name ${{ env.GEO_CONT_NAME }} -e LICENSE_SERVER=${{ env.ANSRV_GEO_LICENSE_SERVER }} -p ${{ env.ANSRV_GEO_PORT }}:50051 ${{ env.ANSRV_GEO_IMAGE_WINDOWS_TAG }}
232216 python -c "from ansys.geometry.core.connection.validate import validate; validate()"
233217
234218 - name : Build the documentation (HTML)
@@ -344,7 +328,7 @@ jobs:
344328 name : Fetch release artifacts
345329 needs : [testing-windows, testing-linux, docs]
346330 if : github.event_name == 'push' && contains(github.ref, 'refs/tags')
347- runs-on :
331+ runs-on :
348332 group : ansys-internal
349333 labels : [self-hosted, Windows, signtool]
350334
@@ -353,7 +337,7 @@ jobs:
353337 run : |
354338 curl.exe -X GET -H "X-JFrog-Art-Api: ${{ secrets.ARTIFACTORY_KEY }}" ${{ secrets.ARTIFACTORY_URL }}/DockerWindows.zip --output windows-binaries.zip
355339 curl.exe -X GET -H "X-JFrog-Art-Api: ${{ secrets.ARTIFACTORY_KEY }}" ${{ secrets.ARTIFACTORY_URL }}/DockerLinux.zip --output linux-binaries.zip
356-
340+
357341 - name : Upload Windows binaries as workflow artifacts
358342 uses : actions/upload-artifact@v3
359343 with :
0 commit comments