17
17
ANSRV_GEO_PORT : 700
18
18
ANSRV_GEO_LICENSE_SERVER : ${{ secrets.LICENSE_SERVER }}
19
19
GEO_CONT_NAME : ans_geo
20
- RESET_IMAGE_CACHE : 3
20
+ RESET_IMAGE_CACHE : 4
21
21
IS_WORKFLOW_RUNNING : True
22
22
ARTIFACTORY_VERSION : v251
23
- MEILISEARCH_API_KEY : ${{ secrets.MEILISEARCH_API_KEY }}
24
- MEILISEARCH_HOST_URL : ${{ vars.MEILISEARCH_HOST_URL }}
25
- MEILISEARCH_PUBLIC_API_KEY : ${{ secrets.MEILISEARCH_PUBLIC_API_KEY }}
26
23
27
24
concurrency :
28
25
group : ${{ github.workflow }}-${{ github.ref }}
@@ -38,47 +35,39 @@ jobs:
38
35
contents : write
39
36
pull-requests : write
40
37
steps :
41
- - uses : ansys/actions/doc-deploy-changelog@v7
38
+ - uses : ansys/actions/doc-deploy-changelog@v8
42
39
with :
43
40
token : ${{ secrets.PYANSYS_CI_BOT_TOKEN }}
41
+ bot-user : ${{ secrets.PYANSYS_CI_BOT_USERNAME }}
42
+ bot-email : ${{ secrets.PYANSYS_CI_BOT_EMAIL }}
44
43
45
44
vulnerabilities :
46
45
name : Vulnerabilities
47
46
runs-on : ubuntu-latest
48
47
steps :
49
48
- name : PyAnsys Vulnerability check (on main)
50
49
if : github.ref == 'refs/heads/main'
51
- uses : ansys/actions/check-vulnerabilities@v7
50
+ uses : ansys/actions/check-vulnerabilities@v8
52
51
with :
53
52
python-version : ${{ env.MAIN_PYTHON_VERSION }}
54
53
python-package-name : ${{ env.PACKAGE_NAME }}
55
54
token : ${{ secrets.PYANSYS_CI_BOT_TOKEN }}
56
55
57
56
- name : PyAnsys Vulnerability check (on dev mode)
58
57
if : github.ref != 'refs/heads/main'
59
- uses : ansys/actions/check-vulnerabilities@v7
58
+ uses : ansys/actions/check-vulnerabilities@v8
60
59
with :
61
60
python-version : ${{ env.MAIN_PYTHON_VERSION }}
62
61
python-package-name : ${{ env.PACKAGE_NAME }}
63
62
token : ${{ secrets.PYANSYS_CI_BOT_TOKEN }}
64
63
dev-mode : true
65
-
66
- branch-name :
67
- # Only if the event is a pull request and the branch name is not from the pre-commit-ci bot
68
- if : github.event_name == 'pull_request' && github.head_ref != 'pre-commit-ci-update-config'
69
- name : Check the name of the branch
70
- runs-on : ubuntu-latest
71
- steps :
72
- - name : Check branch name
73
- uses : ansys/actions/branch-name-style@v7
74
-
75
- commit-name :
64
+ pr-name :
76
65
if : github.event_name == 'pull_request'
77
- name : Check the name of the commit
66
+ name : Check the name of the PR
78
67
runs-on : ubuntu-latest
79
68
steps :
80
69
- name : Check commit name
81
- uses : ansys/actions/commit-style@v7
70
+ uses : ansys/actions/check-pr-title@v8
82
71
with :
83
72
token : ${{ secrets.GITHUB_TOKEN }}
84
73
87
76
runs-on : ubuntu-latest
88
77
steps :
89
78
- name : PyAnsys documentation style checks
90
- uses : ansys/actions/doc-style@v7
79
+ uses : ansys/actions/doc-style@v8
91
80
with :
92
81
token : ${{ secrets.GITHUB_TOKEN }}
93
82
106
95
os : macos-latest
107
96
steps :
108
97
- name : Build wheelhouse and perform smoke test
109
- uses : ansys/actions/build-wheelhouse@v7
98
+ uses : ansys/actions/build-wheelhouse@v8
110
99
with :
111
100
library-name : ${{ env.PACKAGE_NAME }}
112
101
operating-system : ${{ matrix.os }}
@@ -117,7 +106,7 @@ jobs:
117
106
runs-on : ubuntu-latest
118
107
steps :
119
108
- name : PyAnsys documentation style checks
120
- uses : ansys/actions/docker-style@v7
109
+ uses : ansys/actions/docker-style@v8
121
110
with :
122
111
directory : docker
123
112
recursive : true
@@ -133,6 +122,7 @@ jobs:
133
122
continue-on-error : ${{ matrix.experimental }}
134
123
env :
135
124
SKIP_UNSTABLE : ${{ vars.SKIP_UNSTABLE_CONTAINERS_TEMPORARILY == 1 && matrix.experimental }}
125
+ PYVISTA_OFF_SCREEN : true
136
126
strategy :
137
127
fail-fast : false
138
128
matrix :
@@ -155,6 +145,8 @@ jobs:
155
145
- name : Set up headless display
156
146
if : env.SKIP_UNSTABLE == 'false'
157
147
uses : pyvista/setup-headless-display-action@v2
148
+ with :
149
+ pyvista : false
158
150
159
151
- name : Create Python venv
160
152
if : env.SKIP_UNSTABLE == 'false'
@@ -267,9 +259,13 @@ jobs:
267
259
runs-on :
268
260
group : pyansys-self-hosted
269
261
labels : [Windows, pygeometry]
262
+ env :
263
+ PYVISTA_OFF_SCREEN : true
270
264
steps :
271
265
- name : Set up headless display
272
266
uses : pyvista/setup-headless-display-action@v2
267
+ with :
268
+ pyvista : false
273
269
274
270
- name : Login to GitHub Container Registry
275
271
uses : docker/login-action@v3
@@ -290,10 +286,11 @@ jobs:
290
286
run : 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 }}
291
287
292
288
- name : Run Ansys documentation building action
293
- uses : ansys/actions/doc-build@v7
289
+ uses : ansys/actions/doc-build@v8
294
290
with :
295
291
python-version : ${{ env.MAIN_PYTHON_VERSION }}
296
292
add-pdf-html-docs-as-assets : true
293
+ needs-quarto : true
297
294
298
295
- name : Stop the Geometry service
299
296
if : always()
@@ -361,7 +358,7 @@ jobs:
361
358
362
359
- name : Run pytest
363
360
if : env.SKIP_UNSTABLE == 'false'
364
- uses : ansys/actions/tests-pytest@v7
361
+ uses : ansys/actions/tests-pytest@v8
365
362
env :
366
363
ALLOW_PLOTTING : true
367
364
with :
@@ -448,7 +445,7 @@ jobs:
448
445
runs-on : ubuntu-latest
449
446
steps :
450
447
- name : Build library source and wheel artifacts
451
- uses : ansys/actions/build-library@v7
448
+ uses : ansys/actions/build-library@v8
452
449
with :
453
450
library-name : ${{ env.PACKAGE_NAME }}
454
451
python-version : ${{ env.MAIN_PYTHON_VERSION }}
@@ -663,7 +660,7 @@ jobs:
663
660
restore-keys : pyvista-image-cache-${{ runner.os }}-v-${{ env.RESET_IMAGE_CACHE }}
664
661
665
662
- name : Run pytest
666
- uses : ansys/actions/tests-pytest@v7
663
+ uses : ansys/actions/tests-pytest@v8
667
664
env :
668
665
ALLOW_PLOTTING : true
669
666
with :
@@ -704,13 +701,13 @@ jobs:
704
701
contents : write
705
702
steps :
706
703
- name : Release to the public PyPI repository
707
- uses : ansys/actions/release-pypi-public@v7
704
+ uses : ansys/actions/release-pypi-public@v8
708
705
with :
709
706
library-name : ${{ env.PACKAGE_NAME }}
710
707
use-trusted-publisher : true
711
708
712
709
- name : Release to GitHub
713
- uses : ansys/actions/release-github@v7
710
+ uses : ansys/actions/release-github@v8
714
711
with :
715
712
library-name : ${{ env.PACKAGE_NAME }}
716
713
additional-artifacts : windows-dockerfile.zip linux-dockerfile.zip
@@ -722,25 +719,12 @@ jobs:
722
719
needs : [package]
723
720
steps :
724
721
- name : Deploy the latest documentation
725
- uses : ansys/actions/doc-deploy-dev@v7
722
+ uses : ansys/actions/doc-deploy-dev@v8
726
723
with :
727
724
cname : ${{ env.DOCUMENTATION_CNAME }}
728
- token : ${{ secrets.GITHUB_TOKEN }}
729
-
730
- doc-index-dev :
731
- name : " Deploy dev index docs"
732
- if : github.ref == 'refs/heads/main'
733
- runs-on : ubuntu-latest
734
- needs : upload_dev_docs
735
- steps :
736
- - name : " Deploy the latest documentation index"
737
- uses : ansys/actions/doc-deploy-index@v7
738
- with :
739
- cname : ${{ env.DOCUMENTATION_CNAME }}/version/dev
740
- index-name : pyansys-geometry-vdev
741
- host-url : ${{ env.MEILISEARCH_HOST_URL }}
742
- api-key : ${{ env.MEILISEARCH_API_KEY }}
743
- python-version : ${{ env.MAIN_PYTHON_VERSION }}
725
+ token : ${{ secrets.PYANSYS_CI_BOT_TOKEN }}
726
+ bot-user : ${{ secrets.PYANSYS_CI_BOT_USERNAME }}
727
+ bot-email : ${{ secrets.PYANSYS_CI_BOT_EMAIL }}
744
728
745
729
upload_docs_release :
746
730
name : Upload release documentation
@@ -749,36 +733,9 @@ jobs:
749
733
needs : [release]
750
734
steps :
751
735
- name : Deploy the stable documentation
752
- uses : ansys/actions/doc-deploy-stable@v7
736
+ uses : ansys/actions/doc-deploy-stable@v8
753
737
with :
754
738
cname : ${{ env.DOCUMENTATION_CNAME }}
755
- token : ${{ secrets.GITHUB_TOKEN }}
756
-
757
- doc-index-stable :
758
- name : " Deploy stable docs index"
759
- runs-on : ubuntu-latest
760
- needs : upload_docs_release
761
- steps :
762
- - name : " Install Git and clone project"
763
- uses : actions/checkout@v4
764
-
765
- - name : " Install the package requirements"
766
- run : pip install -e .
767
-
768
- - name : " Get the version to PyMeilisearch"
769
- run : |
770
- VERSION=$(python -c "from ansys.geometry.core import __version__; print('.'.join(__version__.split('.')[:2]))")
771
- VERSION_MEILI=$(python -c "from ansys.geometry.core import __version__; print('-'.join(__version__.split('.')[:2]))")
772
- echo "Calculated VERSION: $VERSION"
773
- echo "Calculated VERSION_MEILI: $VERSION_MEILI"
774
- echo "VERSION=$VERSION" >> $GITHUB_ENV
775
- echo "VERSION_MEILI=$VERSION_MEILI" >> $GITHUB_ENV
776
-
777
- - name : " Deploy the latest documentation index"
778
- uses : ansys/actions/doc-deploy-index@v7
779
- with :
780
- cname : ${{ env.DOCUMENTATION_CNAME }}/version/${{ env.VERSION }}
781
- index-name : pyansys-geometry-v${{ env.VERSION_MEILI }}
782
- host-url : ${{ env.MEILISEARCH_HOST_URL }}
783
- api-key : ${{ env.MEILISEARCH_API_KEY }}
784
- python-version : ${{ env.MAIN_PYTHON_VERSION }}
739
+ token : ${{ secrets.PYANSYS_CI_BOT_TOKEN }}
740
+ bot-user : ${{ secrets.PYANSYS_CI_BOT_USERNAME }}
741
+ bot-email : ${{ secrets.PYANSYS_CI_BOT_EMAIL }}
0 commit comments