13
13
PACKAGE_NAME : ' ansys-geometry-core'
14
14
PACKAGE_NAMESPACE : ' ansys.geometry.core'
15
15
DOCUMENTATION_CNAME : ' geometry.docs.pyansys.com'
16
- ANSRV_GEO_IMAGE_WINDOWS_TAG : ghcr.io/pyansys /geometry:windows-latest
17
- ANSRV_GEO_IMAGE_LINUX_TAG : ghcr.io/pyansys /geometry:linux -latest
16
+ ANSRV_GEO_IMAGE : ' ghcr.io/ansys /geometry'
17
+ ANSRV_GEO_IMAGE_WINDOWS_TAG : ghcr.io/ansys /geometry:windows -latest
18
18
ANSRV_GEO_PORT : 700
19
19
ANSRV_GEO_LICENSE_SERVER : ${{ secrets.LICENSE_SERVER }}
20
20
GEO_CONT_NAME : ans_geo
32
32
runs-on : ubuntu-latest
33
33
steps :
34
34
- name : PyAnsys code style checks
35
- uses : pyansys /actions/code-style@v4
35
+ uses : ansys /actions/code-style@v4
36
36
with :
37
37
python-version : ${{ env.MAIN_PYTHON_VERSION }}
38
38
41
41
runs-on : ubuntu-latest
42
42
steps :
43
43
- name : PyAnsys documentation style checks
44
- uses : pyansys /actions/doc-style@v4
44
+ uses : ansys /actions/doc-style@v4
45
45
with :
46
46
token : ${{ secrets.GITHUB_TOKEN }}
47
47
61
61
os : macos-latest
62
62
steps :
63
63
- name : Build wheelhouse and perform smoke test
64
- uses : pyansys /actions/build-wheelhouse@v4
64
+ uses : ansys /actions/build-wheelhouse@v4
65
65
with :
66
66
library-name : ${{ env.PACKAGE_NAME }}
67
67
library-namespace : ${{ env.PACKAGE_NAMESPACE }}
76
76
name : Testing and coverage (Windows)
77
77
needs : [smoke-tests]
78
78
runs-on : [self-hosted, pygeometry]
79
+ continue-on-error : ${{ matrix.experimental }}
80
+ strategy :
81
+ fail-fast : false
82
+ matrix :
83
+ include :
84
+ - docker-image : " windows-latest"
85
+ experimental : false
86
+ - docker-image : " windows-latest-unstable"
87
+ experimental : true
79
88
80
89
steps :
81
90
- uses : actions/checkout@v3
@@ -108,7 +117,7 @@ jobs:
108
117
password : ${{ secrets.GITHUB_TOKEN }}
109
118
110
119
- name : Download Geometry service container (if needed)
111
- run : docker pull $env:ANSRV_GEO_IMAGE_WINDOWS_TAG
120
+ run : docker pull ${{ env.ANSRV_GEO_IMAGE }}:${{ matrix.docker-image }}
112
121
113
122
- name : Check location of self-hosted runner and define license server accordingly
114
123
if : runner.name == 'pygeometry-ci-1'
@@ -118,7 +127,7 @@ jobs:
118
127
- name : Start Geometry service and verify start
119
128
run : |
120
129
.\.venv\Scripts\Activate.ps1
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 }}
130
+ 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 }}:${{ matrix.docker-image }}
122
131
python -c "from ansys.geometry.core.connection.validate import validate; validate()"
123
132
124
133
- name : Restore images cache
@@ -256,6 +265,15 @@ jobs:
256
265
name : Testing and coverage (Linux)
257
266
needs : [smoke-tests]
258
267
runs-on : ubuntu-latest
268
+ continue-on-error : ${{ matrix.experimental }}
269
+ strategy :
270
+ fail-fast : false
271
+ matrix :
272
+ include :
273
+ - docker-image : " linux-latest"
274
+ experimental : false
275
+ - docker-image : " linux-latest-unstable"
276
+ experimental : true
259
277
260
278
steps :
261
279
- name : Login in Github Container registry
@@ -267,8 +285,8 @@ jobs:
267
285
268
286
- name : Pull and launch geometry service
269
287
run : |
270
- docker pull ${{ env.ANSRV_GEO_IMAGE_LINUX_TAG }}
271
- 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_LINUX_TAG }}
288
+ docker pull ${{ env.ANSRV_GEO_IMAGE }}:${{ matrix.docker-image }}
289
+ 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 }}:${{ matrix.docker-image }}
272
290
273
291
- name : Checkout repository
274
292
uses : actions/checkout@v3
@@ -281,7 +299,7 @@ jobs:
281
299
restore-keys : pyvista-image-cache-${{ runner.os }}-v-${{ env.RESET_IMAGE_CACHE }}
282
300
283
301
- name : Run pytest
284
- uses : pyansys /actions/tests-pytest@v4
302
+ uses : ansys /actions/tests-pytest@v4
285
303
env :
286
304
ALLOW_PLOTTING : true
287
305
with :
@@ -319,7 +337,7 @@ jobs:
319
337
runs-on : ubuntu-latest
320
338
steps :
321
339
- name : Build library source and wheel artifacts
322
- uses : pyansys /actions/build-library@v4
340
+ uses : ansys /actions/build-library@v4
323
341
with :
324
342
library-name : ${{ env.PACKAGE_NAME }}
325
343
python-version : ${{ env.MAIN_PYTHON_VERSION }}
@@ -359,14 +377,14 @@ jobs:
359
377
runs-on : ubuntu-latest
360
378
steps :
361
379
- name : Release to the private PyPI repository
362
- uses : pyansys /actions/release-pypi-private@v4
380
+ uses : ansys /actions/release-pypi-private@v4
363
381
with :
364
382
library-name : ${{ env.PACKAGE_NAME }}
365
383
twine-username : " __token__"
366
384
twine-token : ${{ secrets.PYANSYS_PYPI_PRIVATE_PAT }}
367
385
368
386
- name : Release to GitHub
369
- uses : pyansys /actions/release-github@v4
387
+ uses : ansys /actions/release-github@v4
370
388
with :
371
389
library-name : ${{ env.PACKAGE_NAME }}
372
390
additional-artifacts : windows-binaries.zip linux-binaries.zip
@@ -378,7 +396,7 @@ jobs:
378
396
needs : [package]
379
397
steps :
380
398
- name : Deploy the latest documentation
381
- uses : pyansys /actions/doc-deploy-dev@v4
399
+ uses : ansys /actions/doc-deploy-dev@v4
382
400
with :
383
401
cname : ${{ env.DOCUMENTATION_CNAME }}
384
402
token : ${{ secrets.GITHUB_TOKEN }}
@@ -390,7 +408,7 @@ jobs:
390
408
needs : [package]
391
409
steps :
392
410
- name : Deploy the stable documentation
393
- uses : pyansys /actions/doc-deploy-stable@v4
411
+ uses : ansys /actions/doc-deploy-stable@v4
394
412
with :
395
413
cname : ${{ env.DOCUMENTATION_CNAME }}
396
414
token : ${{ secrets.GITHUB_TOKEN }}
0 commit comments