33
33
DPF_PORT : 21004
34
34
MAPDL_PACKAGE : ghcr.io/ansys/mapdl
35
35
ON_CI : True
36
- PYTEST_ARGUMENTS : ' -vvv -ra --durations=10 --maxfail=3 --reruns 3 --reruns-delay 4 --cov=ansys.mapdl.core --cov-report=html'
36
+ PYTEST_ARGUMENTS : ' -vvv --color=yes -ra --durations=10 --maxfail=3 --reruns 3 --reruns-delay 4 --cov=ansys.mapdl.core --cov-report=html'
37
+ BUILD_CHEATSHEET : True
37
38
38
39
# Following env vars when changed will "reset" the mentioned cache,
39
40
# by changing the cache file name. It is rendered as ...-v%RESET_XXX%-...
40
41
# You should go up in number, if you go down (or repeat a previous value)
41
42
# you might end up reusing a previous cache if it haven't been deleted already.
42
43
# It applies 7 days retention policy by default.
43
- RESET_EXAMPLES_CACHE : 2
44
- RESET_DOC_BUILD_CACHE : 2
45
- RESET_AUTOSUMMARY_CACHE : 2
44
+ RESET_EXAMPLES_CACHE : 0
45
+ RESET_DOC_BUILD_CACHE : 0
46
+ RESET_AUTOSUMMARY_CACHE : 0
46
47
47
48
concurrency :
48
49
group : ${{ github.workflow }}-${{ github.ref }}
@@ -69,28 +70,20 @@ jobs:
69
70
contents : write
70
71
pull-requests : write
71
72
steps :
72
- - uses : ansys/actions/doc-deploy-changelog@v7
73
+ - uses : ansys/actions/doc-deploy-changelog@v8
73
74
with :
74
75
token : ${{ secrets.PYANSYS_CI_BOT_TOKEN }}
76
+ bot-user : ${{ secrets.PYANSYS_CI_BOT_USERNAME }}
77
+ bot-email : ${{ secrets.PYANSYS_CI_BOT_EMAIL }}
75
78
76
79
77
- branch-name :
78
- # Only if the event is a pull request and the branch name is not from the pre-commit-ci bot
79
- if : github.event_name == 'pull_request' && github.head_ref != 'pre-commit-ci-update-config'
80
- name : Check the name of the branch
81
- runs-on : ubuntu-latest
82
- steps :
83
- - name : Check branch name
84
- uses : ansys/actions/branch-name-style@v7
85
-
86
-
87
- commit-name :
80
+ pull-request-name :
88
81
if : github.event_name == 'pull_request'
89
- name : Check the name of the commit
82
+ name : Check the name of the pull-request
90
83
runs-on : ubuntu-latest
91
84
steps :
92
- - name : Check commit name
93
- uses : ansys/actions/commit-style@v7
85
+ - name : Check pull-request name
86
+ uses : ansys/actions/check-pr-title@v8
94
87
with :
95
88
token : ${{ secrets.GITHUB_TOKEN }}
96
89
103
96
folder : ["doc", "examples"]
104
97
steps :
105
98
- name : " Ansys documentation style checks"
106
- uses : ansys/actions/doc-style@v7
99
+ uses : ansys/actions/doc-style@v8
107
100
with :
108
101
token : ${{ secrets.GITHUB_TOKEN }}
109
102
files : ${{ matrix.folder }}
@@ -129,7 +122,7 @@ jobs:
129
122
os : macos-latest
130
123
steps :
131
124
- name : " Build wheelhouse and perform smoke test"
132
- uses : ansys/actions/build-wheelhouse@v7
125
+ uses : ansys/actions/build-wheelhouse@v8
133
126
with :
134
127
library-name : ${{ env.PACKAGE_NAME }}
135
128
operating-system : ${{ matrix.os }}
@@ -156,9 +149,10 @@ jobs:
156
149
PYMAPDL_DB_PORT : 21001 # default won't work on GitHub runners
157
150
PYMAPDL_START_INSTANCE : FALSE
158
151
ON_DOCUMENTATION : TRUE
152
+ GRPC_ENABLE_FORK_SUPPORT : false # See #3434
159
153
steps :
160
154
- name : " Install Git and checkout project"
161
- uses : actions/checkout@v4.1.7
155
+ uses : actions/checkout@v4.2.1
162
156
163
157
- name : " Login in Github container registry"
164
158
uses : docker/login-action@v3.3.0
@@ -262,11 +256,28 @@ jobs:
262
256
263
257
- name : " Install docs build requirements"
264
258
run : |
259
+ pip uninstall ansys-sphinx-theme
265
260
pip install .[doc]
266
261
267
262
- name : " Waiting for the services to be up"
268
263
run : |
269
264
.ci/waiting_services.sh
265
+
266
+ - name : Install Quarto
267
+ uses : quarto-dev/quarto-actions/setup@v2
268
+ with :
269
+ tinytex : true
270
+
271
+ - name : Check Quarto Version
272
+ shell : bash
273
+ run : |
274
+ quarto --version
275
+
276
+ - name : " Install Poppler for PDF to PNG conversion"
277
+ shell : bash
278
+ run : |
279
+ sudo apt-get update
280
+ sudo apt-get install -y poppler-utils
270
281
271
282
- name : " Build documentation"
272
283
run : |
@@ -324,7 +335,7 @@ jobs:
324
335
- name : " Display files structure"
325
336
if : always()
326
337
env :
327
- MAPDL_INSTANCE : mapdl
338
+ MAPDL_INSTANCE : MAPDL_0
328
339
LOG_NAMES : logs-build-docs
329
340
run : |
330
341
.ci/display_logs.sh
@@ -338,7 +349,7 @@ jobs:
338
349
339
350
steps :
340
351
- name : " Install Git and checkout project"
341
- uses : actions/checkout@v4.1.7
352
+ uses : actions/checkout@v4.2.1
342
353
343
354
- name : Get event type and user to check permissions.
344
355
id : get_user
@@ -357,6 +368,7 @@ jobs:
357
368
358
369
- uses : tspascoal/get-user-teams-membership@v3
359
370
id : is_organization_member
371
+ if : ${{ github.actor != 'dependabot[bot]' }}
360
372
with :
361
373
username : ${{ steps.get_user.outputs.user }}
362
374
organization : ansys
@@ -366,7 +378,7 @@ jobs:
366
378
- id : set-matrix
367
379
env :
368
380
extended_testing : ${{ github.event_name == 'schedule' || ( github.event_name == 'workflow_dispatch' && inputs.run_all_tests ) || ( github.event_name == 'push' && contains(github.ref, 'refs/tags') ) }}
369
- auth_user : ${{ steps.is_organization_member.outputs.isTeamMember == 'true' }}
381
+ auth_user : ${{ steps.is_organization_member.outputs.isTeamMember == 'true' || github.actor == 'dependabot[bot]' }}
370
382
run : .ci/build_matrix.sh
371
383
372
384
build-test-remote :
@@ -392,7 +404,7 @@ jobs:
392
404
393
405
steps :
394
406
- name : " Install Git and checkout project"
395
- uses : actions/checkout@v4.1.7
407
+ uses : actions/checkout@v4.2.1
396
408
397
409
- name : " Login in Github container registry"
398
410
uses : docker/login-action@v3.3.0
@@ -548,23 +560,23 @@ jobs:
548
560
if : always()
549
561
env :
550
562
MAPDL_VERSION : ${{ matrix.mapdl-version }}
551
- MAPDL_INSTANCE : mapdl
552
- LOG_NAMES : logs-${{ matrix.mapdl-version }}
563
+ MAPDL_INSTANCE : MAPDL_0
564
+ LOG_NAMES : logs-remote- ${{ matrix.mapdl-version }}
553
565
run : |
554
566
.ci/collect_mapdl_logs.sh
555
567
556
568
- name : " Upload logs to GitHub"
557
569
if : always()
558
570
uses : actions/upload-artifact@v4
559
571
with :
560
- name : logs-${{ matrix.mapdl-version }}.tgz
561
- path : ./logs-${{ matrix.mapdl-version }}.tgz
572
+ name : logs-remote- ${{ matrix.mapdl-version }}.tgz
573
+ path : ./logs-remote- ${{ matrix.mapdl-version }}.tgz
562
574
563
575
- name : " Display files structure"
564
576
if : always()
565
577
env :
566
- MAPDL_INSTANCE : mapdl
567
- LOG_NAMES : logs-${{ matrix.mapdl-version }}
578
+ MAPDL_INSTANCE : MAPDL_0
579
+ LOG_NAMES : logs-remote- ${{ matrix.mapdl-version }}
568
580
run : |
569
581
.ci/display_logs.sh
570
582
@@ -576,10 +588,11 @@ jobs:
576
588
matrix : ${{ steps.set-matrix.outputs.matrix }}
577
589
steps :
578
590
- name : " Install Git and checkout project"
579
- uses : actions/checkout@v4.1.7
591
+ uses : actions/checkout@v4.2.1
580
592
581
593
- uses : tspascoal/get-user-teams-membership@v3
582
594
id : is_organization_member
595
+ if : ${{ github.actor != 'dependabot[bot]' }}
583
596
with :
584
597
username : ${{ github.actor }}
585
598
organization : ansys
@@ -595,7 +608,7 @@ jobs:
595
608
RUN_ALL_TEST : ${{ inputs.run_all_tests }}
596
609
ON_PUSH : ${{ github.event_name == 'push' }}
597
610
HAS_TAG : ${{ contains(github.ref, 'refs/tags') }}
598
- auth_user : ${{ steps.is_organization_member.outputs.isTeamMember == 'true' }}
611
+ auth_user : ${{ steps.is_organization_member.outputs.isTeamMember == 'true' || github.actor == 'dependabot[bot]' }}
599
612
run : .ci/build_matrix.sh
600
613
601
614
build-test-ubuntu-local :
@@ -622,7 +635,7 @@ jobs:
622
635
623
636
steps :
624
637
- name : " Install Git and checkout project"
625
- uses : actions/checkout@v4.1.7
638
+ uses : actions/checkout@v4.2.1
626
639
with :
627
640
repository : ${{ github.event.pull_request.head.repo.full_name }}
628
641
ref : ${{ github.event.pull_request.head.ref }}
@@ -695,14 +708,14 @@ jobs:
695
708
id : attatch-to-pr
696
709
uses : EndBug/add-and-commit@v9
697
710
with :
698
- message : Update the image cache
711
+ message : " chore: update the image cache"
699
712
committer_name : GitHub Actions
700
713
committer_email : actions@github.com
701
714
add : ' ./tests/.image_cache/*.png'
702
715
703
716
- name : " PR comment with reactions"
704
717
if : ${{ steps.attatch-to-pr.outputs.pushed == 'true' }}
705
- uses : thollander/actions-comment-pull-request@v2
718
+ uses : thollander/actions-comment-pull-request@v3
706
719
with :
707
720
message : |
708
721
Hello! :wave:
@@ -711,7 +724,7 @@ jobs:
711
724
712
725
This commit does not re-run the CICD workflows (since no changes are made in the codebase) therefore you will see the actions showing in their status `Expected — Waiting for status to be reported`. Do not worry. You commit workflow is still running [here](https://github.com/ansys/pymapdl/pull/${{ github.event.pull_request.number }}/checks?sha=${{ github.event.pull_request.head.sha }}) :smile:
713
726
714
- You might want to rerun the test to make sure that everything is passing. You can retrigger the CICD sending an empty commit `git commit -m "Empty comment to trigger CICD" --allow-empty`.
727
+ You might want to rerun the test to make sure that everything is passing. You can retrigger the CICD sending an empty commit `git commit -m "chore: empty comment to trigger CICD" --allow-empty`.
715
728
716
729
You will see this message everytime your commit changes the image cache but you are not attaching the updated cache. :nerd_face:
717
730
@@ -753,7 +766,7 @@ jobs:
753
766
754
767
steps :
755
768
- name : " Install Git and checkout project"
756
- uses : actions/checkout@v4.1.7
769
+ uses : actions/checkout@v4.2.1
757
770
with :
758
771
repository : ${{ github.event.pull_request.head.repo.full_name }}
759
772
ref : ${{ github.event.pull_request.head.ref }}
@@ -848,7 +861,7 @@ jobs:
848
861
ON_LOCAL : TRUE
849
862
850
863
steps :
851
- - uses : actions/checkout@v4.1.7
864
+ - uses : actions/checkout@v4.2.1
852
865
853
866
# Skipping because it is installed locally.
854
867
# - name: Setup Python
@@ -916,7 +929,7 @@ jobs:
916
929
runs-on : ubuntu-latest
917
930
steps :
918
931
- name : " Build library source and wheel artifacts"
919
- uses : ansys/actions/build-library@v7
932
+ uses : ansys/actions/build-library@v8
920
933
with :
921
934
library-name : ${{ env.PACKAGE_NAME }}
922
935
python-version : ${{ env.MAIN_PYTHON_VERSION }}
@@ -934,13 +947,13 @@ jobs:
934
947
contents : write
935
948
steps :
936
949
- name : " Release to the public PyPI repository"
937
- uses : ansys/actions/release-pypi-public@v7
950
+ uses : ansys/actions/release-pypi-public@v8
938
951
with :
939
952
library-name : ${{ env.PACKAGE_NAME }}
940
953
use-trusted-publisher : true
941
954
942
955
- name : " Release to GitHub"
943
- uses : ansys/actions/release-github@v7
956
+ uses : ansys/actions/release-github@v8
944
957
with :
945
958
library-name : ${{ env.PACKAGE_NAME }}
946
959
additional-artifacts : " minimum_requirements.txt"
@@ -956,42 +969,13 @@ jobs:
956
969
needs : [release]
957
970
steps :
958
971
- name : " Deploy the stable documentation"
959
- # TODO: testing SEO improvements. This branch avoids creating a
960
- # sitemap.xml pages in opposite to v5.
961
- uses : ansys/actions/doc-deploy-stable@feat/seo-improvements
972
+ uses : ansys/actions/doc-deploy-stable@v8
962
973
with :
963
974
cname : ${{ env.DOCUMENTATION_CNAME }}
964
975
token : ${{ secrets.GITHUB_TOKEN }}
965
976
render-last : ' 5'
966
-
967
-
968
- doc-index-stable :
969
- name : " Deploy stable docs index"
970
- runs-on : ubuntu-latest
971
- needs : upload-docs-release
972
- steps :
973
- - name : " Install Git and clone project"
974
- uses : actions/checkout@v4.1.7
975
-
976
- - name : " Install the package requirements"
977
- run : pip install -e .
978
-
979
- - name : " Get the version to PyMeilisearch"
980
- run : |
981
- VERSION=$(python -c "from ansys.mapdl.core import __version__; print('.'.join(__version__.split('.')[:2]))")
982
- VERSION_MEILI=$(python -c "from ansys.mapdl.core import __version__; print('-'.join(__version__.split('.')[:2]))")
983
- echo "Calculated VERSION: $VERSION"
984
- echo "Calculated VERSION_MEILI: $VERSION_MEILI"
985
- echo "VERSION=$VERSION" >> $GITHUB_ENV
986
- echo "VERSION_MEILI=$VERSION_MEILI" >> $GITHUB_ENV
987
-
988
- - name : " Deploy the latest documentation index"
989
- uses : ansys/actions/doc-deploy-index@v7
990
- with :
991
- cname : ${{ env.DOCUMENTATION_CNAME }}/version/${{ env.VERSION }}
992
- index-name : pymapdl-v${{ env.VERSION_MEILI }}
993
- host-url : ${{ vars.MEILISEARCH_HOST_URL }}
994
- api-key : ${{ env.MEILISEARCH_API_KEY }}
977
+ bot-user : ${{ secrets.PYANSYS_CI_BOT_USERNAME }}
978
+ bot-email : ${{ secrets.PYANSYS_CI_BOT_EMAIL }}
995
979
996
980
997
981
upload-dev-docs :
@@ -1001,25 +985,12 @@ jobs:
1001
985
needs : [docs-build]
1002
986
steps :
1003
987
- name : " Deploy the latest documentation"
1004
- # TODO: testing SEO improvements. This branch reuses the "index.html" from the stable version
1005
- uses : ansys/actions/doc-deploy-dev@feat/seo-improvements
988
+ uses : ansys/actions/doc-deploy-dev@v8
1006
989
with :
1007
990
cname : ${{ env.DOCUMENTATION_CNAME }}
1008
991
token : ${{ secrets.GITHUB_TOKEN }}
1009
-
1010
-
1011
- doc-index-dev :
1012
- name : " Deploy dev index docs"
1013
- runs-on : ubuntu-latest
1014
- needs : upload-dev-docs
1015
- steps :
1016
- - name : " Deploy the latest documentation index"
1017
- uses : ansys/actions/doc-deploy-index@v7
1018
- with :
1019
- cname : ${{ env.DOCUMENTATION_CNAME }}/version/dev
1020
- index-name : pymapdl-vdev
1021
- host-url : ${{ vars.MEILISEARCH_HOST_URL }}
1022
- api-key : ${{ env.MEILISEARCH_API_KEY }}
992
+ bot-user : ${{ secrets.PYANSYS_CI_BOT_USERNAME }}
993
+ bot-email : ${{ secrets.PYANSYS_CI_BOT_EMAIL }}
1023
994
1024
995
1025
996
notify :
@@ -1047,7 +1018,7 @@ jobs:
1047
1018
os : [ubuntu-latest, windows-latest]
1048
1019
1049
1020
steps :
1050
- - uses : actions/checkout@v4.1.7
1021
+ - uses : actions/checkout@v4.2.1
1051
1022
- name : " Set up Julia"
1052
1023
uses : julia-actions/setup-julia@v2
1053
1024
with :
0 commit comments