Skip to content

Commit 1afa37a

Browse files
committed
2 parents e00316b + 9859054 commit 1afa37a

File tree

119 files changed

+3201
-700
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

119 files changed

+3201
-700
lines changed

.github/codeql-config.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,3 @@
22
paths:
33
- src
44
- tests
5-
paths-ignore:
6-
- '**/failing_script.py'

.github/workflows/ci_cd.yml

Lines changed: 27 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,12 @@ concurrency:
2525
group: ${{ github.workflow }}-${{ github.ref }}
2626
cancel-in-progress: true
2727

28-
jobs:
28+
permissions:
29+
contents: write
30+
pull-requests: write
31+
packages: read
2932

33+
jobs:
3034
update-changelog:
3135
name: "Update CHANGELOG (on release)"
3236
if: github.event_name == 'push' && contains(github.ref, 'refs/tags')
@@ -35,7 +39,7 @@ jobs:
3539
contents: write
3640
pull-requests: write
3741
steps:
38-
- uses: ansys/actions/doc-deploy-changelog@2cf9a9c43235a000d613c2b13e64c954232a4553 # v9.0.9
42+
- uses: ansys/actions/doc-deploy-changelog@dce0e98a78079681554a90abde4ec81a7fa8e06a # v10.0.10
3943
with:
4044
token: ${{ secrets.PYANSYS_CI_BOT_TOKEN }}
4145
bot-user: ${{ secrets.PYANSYS_CI_BOT_USERNAME }}
@@ -45,7 +49,7 @@ jobs:
4549
name: Vulnerabilities
4650
runs-on: ubuntu-latest
4751
steps:
48-
- uses: ansys/actions/check-vulnerabilities@2cf9a9c43235a000d613c2b13e64c954232a4553 # v9.0.9
52+
- uses: ansys/actions/check-vulnerabilities@dce0e98a78079681554a90abde4ec81a7fa8e06a # v10.0.10
4953
with:
5054
python-version: ${{ env.MAIN_PYTHON_VERSION }}
5155
python-package-name: ${{ env.PACKAGE_NAME }}
@@ -58,7 +62,7 @@ jobs:
5862
runs-on: ubuntu-latest
5963
steps:
6064
- name: Check commit name
61-
uses: ansys/actions/check-pr-title@2cf9a9c43235a000d613c2b13e64c954232a4553 # v9.0.9
65+
uses: ansys/actions/check-pr-title@dce0e98a78079681554a90abde4ec81a7fa8e06a # v10.0.10
6266
with:
6367
token: ${{ secrets.GITHUB_TOKEN }}
6468

@@ -67,7 +71,7 @@ jobs:
6771
runs-on: ubuntu-latest
6872
steps:
6973
- name: PyAnsys documentation style checks
70-
uses: ansys/actions/doc-style@2cf9a9c43235a000d613c2b13e64c954232a4553 # v9.0.9
74+
uses: ansys/actions/doc-style@dce0e98a78079681554a90abde4ec81a7fa8e06a # v10.0.10
7175
with:
7276
token: ${{ secrets.GITHUB_TOKEN }}
7377

@@ -86,7 +90,7 @@ jobs:
8690
os: macos-latest
8791
steps:
8892
- name: Build wheelhouse and perform smoke test
89-
uses: ansys/actions/build-wheelhouse@2cf9a9c43235a000d613c2b13e64c954232a4553 # v9.0.9
93+
uses: ansys/actions/build-wheelhouse@dce0e98a78079681554a90abde4ec81a7fa8e06a # v10.0.10
9094
with:
9195
library-name: ${{ env.PACKAGE_NAME }}
9296
operating-system: ${{ matrix.os }}
@@ -98,7 +102,7 @@ jobs:
98102
runs-on: ubuntu-latest
99103
steps:
100104
- name: PyAnsys documentation style checks
101-
uses: ansys/actions/docker-style@2cf9a9c43235a000d613c2b13e64c954232a4553 # v9.0.9
105+
uses: ansys/actions/docker-style@dce0e98a78079681554a90abde4ec81a7fa8e06a # v10.0.10
102106
with:
103107
directory: docker
104108
recursive: true
@@ -181,7 +185,7 @@ jobs:
181185
exit 1
182186
}
183187
184-
$A = $env:SKIP_UNSTABLE_CONTAINERS_TEMPORARILY -eq 1
188+
$A = ${{ vars.SKIP_UNSTABLE_CONTAINERS_TEMPORARILY }} -eq 1
185189
$B = $ImagesAreEqual -eq 1
186190
187191
# Calculate the logical expression
@@ -202,7 +206,7 @@ jobs:
202206

203207
- name: Set up headless display
204208
if: env.SKIP_UNSTABLE == 'false'
205-
uses: pyvista/setup-headless-display-action@f744438e29e50189f40f1749859bac7d0f69b5fa # v4.1
209+
uses: pyvista/setup-headless-display-action@7d84ae825e6d9297a8e99bdbbae20d1b919a0b19 # v4.2
206210

207211
- name: Create Python venv
208212
if: env.SKIP_UNSTABLE == 'false'
@@ -322,7 +326,7 @@ jobs:
322326
runs-on: ubuntu-latest
323327
steps:
324328
- name: Set up headless display
325-
uses: pyvista/setup-headless-display-action@f744438e29e50189f40f1749859bac7d0f69b5fa # v4.1
329+
uses: pyvista/setup-headless-display-action@7d84ae825e6d9297a8e99bdbbae20d1b919a0b19 # v4.2
326330

327331
- name: Login to GitHub Container Registry
328332
uses: docker/login-action@74a5d142397b4f367a81961eba4e8cd7edddf772 # v3.4.0
@@ -337,7 +341,7 @@ jobs:
337341
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_DOCS_TAG }}
338342
339343
- name: Run Ansys documentation building action
340-
uses: ansys/actions/doc-build@2cf9a9c43235a000d613c2b13e64c954232a4553 # v9.0.9
344+
uses: ansys/actions/doc-build@dce0e98a78079681554a90abde4ec81a7fa8e06a # v10.0.10
341345
with:
342346
python-version: ${{ env.MAIN_PYTHON_VERSION }}
343347
add-pdf-html-docs-as-assets: true
@@ -386,7 +390,7 @@ jobs:
386390
exit 1
387391
fi
388392
389-
A=$([[ "$SKIP_UNSTABLE_CONTAINERS_TEMPORARILY" == "1" ]] && echo true || echo false)
393+
A=$([[ "${{ vars.SKIP_UNSTABLE_CONTAINERS_TEMPORARILY }}" == "1" ]] && echo true || echo false)
390394
B=$([[ "$ImagesAreEqual" == "1" ]] && echo true || echo false)
391395
392396
# Calculate the logical expression
@@ -398,7 +402,7 @@ jobs:
398402
399403
- name: Set up headless display
400404
if: env.SKIP_UNSTABLE == 'false'
401-
uses: pyvista/setup-headless-display-action@f744438e29e50189f40f1749859bac7d0f69b5fa # v4.1
405+
uses: pyvista/setup-headless-display-action@7d84ae825e6d9297a8e99bdbbae20d1b919a0b19 # v4.2
402406

403407
- name: Login in Github Container registry
404408
if: env.SKIP_UNSTABLE == 'false'
@@ -428,7 +432,7 @@ jobs:
428432

429433
- name: Run pytest
430434
if: env.SKIP_UNSTABLE == 'false'
431-
uses: ansys/actions/tests-pytest@2cf9a9c43235a000d613c2b13e64c954232a4553 # v9.0.9
435+
uses: ansys/actions/tests-pytest@dce0e98a78079681554a90abde4ec81a7fa8e06a # v10.0.10
432436
env:
433437
ALLOW_PLOTTING: true
434438
with:
@@ -474,7 +478,7 @@ jobs:
474478
python-version: ['3.10', '3.11', '3.12', '3.13']
475479
steps:
476480
- name: Set up headless display
477-
uses: pyvista/setup-headless-display-action@f744438e29e50189f40f1749859bac7d0f69b5fa # v4.1
481+
uses: pyvista/setup-headless-display-action@7d84ae825e6d9297a8e99bdbbae20d1b919a0b19 # v4.2
478482

479483
- name: Login in Github Container registry
480484
uses: docker/login-action@74a5d142397b4f367a81961eba4e8cd7edddf772 # v3.4.0
@@ -576,7 +580,7 @@ jobs:
576580
id-token: write
577581
steps:
578582
- name: Build library source and wheel artifacts
579-
uses: ansys/actions/build-library@2cf9a9c43235a000d613c2b13e64c954232a4553 # v9.0.9
583+
uses: ansys/actions/build-library@dce0e98a78079681554a90abde4ec81a7fa8e06a # v10.0.10
580584
with:
581585
library-name: ${{ env.PACKAGE_NAME }}
582586
python-version: ${{ env.MAIN_PYTHON_VERSION }}
@@ -674,7 +678,7 @@ jobs:
674678
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
675679

676680
- name: Set up headless display
677-
uses: pyvista/setup-headless-display-action@f744438e29e50189f40f1749859bac7d0f69b5fa # v4.1
681+
uses: pyvista/setup-headless-display-action@7d84ae825e6d9297a8e99bdbbae20d1b919a0b19 # v4.2
678682

679683
- name: Set up Python
680684
uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5.6.0
@@ -775,7 +779,7 @@ jobs:
775779
python-version: ${{ env.MAIN_PYTHON_VERSION }}
776780

777781
- name: Set up headless display
778-
uses: pyvista/setup-headless-display-action@f744438e29e50189f40f1749859bac7d0f69b5fa # v4.1
782+
uses: pyvista/setup-headless-display-action@7d84ae825e6d9297a8e99bdbbae20d1b919a0b19 # v4.2
779783

780784
- name: Download Linux binaries
781785
uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0
@@ -806,7 +810,7 @@ jobs:
806810
restore-keys: pyvista-image-cache-${{ runner.os }}-v-${{ env.RESET_IMAGE_CACHE }}
807811

808812
- name: Run pytest
809-
uses: ansys/actions/tests-pytest@2cf9a9c43235a000d613c2b13e64c954232a4553 # v9.0.9
813+
uses: ansys/actions/tests-pytest@dce0e98a78079681554a90abde4ec81a7fa8e06a # v10.0.10
810814
env:
811815
ALLOW_PLOTTING: true
812816
with:
@@ -847,7 +851,7 @@ jobs:
847851
contents: write
848852
steps:
849853
- name: Release to GitHub
850-
uses: ansys/actions/release-github@2cf9a9c43235a000d613c2b13e64c954232a4553 # v9.0.9
854+
uses: ansys/actions/release-github@dce0e98a78079681554a90abde4ec81a7fa8e06a # v10.0.10
851855
with:
852856
token: ${{ secrets.GITHUB_TOKEN }}
853857
library-name: ${{ env.PACKAGE_NAME }}
@@ -887,7 +891,7 @@ jobs:
887891
needs: [package]
888892
steps:
889893
- name: Deploy the latest documentation
890-
uses: ansys/actions/doc-deploy-dev@2cf9a9c43235a000d613c2b13e64c954232a4553 # v9.0.9
894+
uses: ansys/actions/doc-deploy-dev@dce0e98a78079681554a90abde4ec81a7fa8e06a # v10.0.10
891895
with:
892896
cname: ${{ env.DOCUMENTATION_CNAME }}
893897
token: ${{ secrets.PYANSYS_CI_BOT_TOKEN }}
@@ -901,7 +905,7 @@ jobs:
901905
needs: [release, release-pypi]
902906
steps:
903907
- name: Deploy the stable documentation
904-
uses: ansys/actions/doc-deploy-stable@2cf9a9c43235a000d613c2b13e64c954232a4553 # v9.0.9
908+
uses: ansys/actions/doc-deploy-stable@dce0e98a78079681554a90abde4ec81a7fa8e06a # v10.0.10
905909
with:
906910
cname: ${{ env.DOCUMENTATION_CNAME }}
907911
token: ${{ secrets.PYANSYS_CI_BOT_TOKEN }}
@@ -918,7 +922,7 @@ jobs:
918922
pull-requests: write
919923
steps:
920924
- name: Automerge PRs
921-
uses: ansys/actions/hk-automerge-prs@2cf9a9c43235a000d613c2b13e64c954232a4553 # v9.0.9
925+
uses: ansys/actions/hk-automerge-prs@dce0e98a78079681554a90abde4ec81a7fa8e06a # v10.0.10
922926
with:
923927
approver: ${{ secrets.PYANSYS_CI_BOT_USERNAME }}
924928
approver-token: ${{ secrets.PYANSYS_CI_BOT_TOKEN }}

.github/workflows/codeql.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,13 @@ jobs:
2222
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
2323

2424
- name: Initialize CodeQL
25-
uses: github/codeql-action/init@ff0a06e83cb2de871e5a09832bc6a81e7276941f # v3.28.18
25+
uses: github/codeql-action/init@fca7ace96b7d713c7035871441bd52efbe39e27e # v3.28.19
2626
with:
2727
languages: 'python'
2828
config-file: ./.github/codeql-config.yml
2929

3030
- name: Autobuild
31-
uses: github/codeql-action/autobuild@ff0a06e83cb2de871e5a09832bc6a81e7276941f # v3.28.18
31+
uses: github/codeql-action/autobuild@fca7ace96b7d713c7035871441bd52efbe39e27e # v3.28.19
3232

3333
# If the Autobuild fails above, remove it and uncomment the following three lines.
3434
# modify them (or add more) to build your code if your project, please refer to the EXAMPLE below for guidance.
@@ -38,6 +38,6 @@ jobs:
3838
# ./location_of_script_within_repo/buildscript.sh
3939

4040
- name: Perform CodeQL Analysis
41-
uses: github/codeql-action/analyze@ff0a06e83cb2de871e5a09832bc6a81e7276941f # v3.28.18
41+
uses: github/codeql-action/analyze@fca7ace96b7d713c7035871441bd52efbe39e27e # v3.28.19
4242
with:
4343
category: "/language:python"

.github/workflows/docker_cleanup.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
steps:
2323

2424
- name: "Perform versions cleanup - except certain tags"
25-
uses: ansys/actions/hk-package-clean-except@2cf9a9c43235a000d613c2b13e64c954232a4553 # v9.0.9
25+
uses: ansys/actions/hk-package-clean-except@dce0e98a78079681554a90abde4ec81a7fa8e06a # v10.0.10
2626
with:
2727
package-name: 'geometry'
2828
token: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/label.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@ jobs:
1919
label-syncer:
2020
name: Syncer
2121
runs-on: ubuntu-latest
22+
permissions:
23+
contents: write
24+
pull-requests: write
2225
steps:
2326
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
2427
- uses: micnncim/action-label-syncer@3abd5ab72fda571e69fffd97bd4e0033dd5f495c # v1.3.0
@@ -76,6 +79,9 @@ jobs:
7679

7780
commenter:
7881
runs-on: ubuntu-latest
82+
permissions:
83+
contents: read
84+
pull-requests: write
7985
steps:
8086
- name: Suggest to add labels
8187
uses: peter-evans/create-or-update-comment@71345be0265236311c031f5c7866368bd1eff043 # v4.0.0
@@ -100,7 +106,7 @@ jobs:
100106
pull-requests: write
101107
runs-on: ubuntu-latest
102108
steps:
103-
- uses: ansys/actions/doc-changelog@2cf9a9c43235a000d613c2b13e64c954232a4553 # v9.0.9
109+
- uses: ansys/actions/doc-changelog@dce0e98a78079681554a90abde4ec81a7fa8e06a # v10.0.10
104110
with:
105111
token: ${{ secrets.PYANSYS_CI_BOT_TOKEN }}
106112
use-conventional-commits: true

.github/workflows/nightly_docker_test.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,10 @@ concurrency:
3232
group: ${{ github.workflow }}-${{ github.ref }}
3333
cancel-in-progress: true
3434

35+
permissions:
36+
contents: write
37+
packages: write
38+
3539
jobs:
3640

3741
manifests:
@@ -100,7 +104,7 @@ jobs:
100104
python-version: ${{ env.MAIN_PYTHON_VERSION }}
101105

102106
- name: Set up headless display
103-
uses: pyvista/setup-headless-display-action@f744438e29e50189f40f1749859bac7d0f69b5fa # v4.1
107+
uses: pyvista/setup-headless-display-action@7d84ae825e6d9297a8e99bdbbae20d1b919a0b19 # v4.2
104108

105109
- name: Create Python venv
106110
run: |
@@ -213,10 +217,10 @@ jobs:
213217
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_CORE_TAG }}
214218
215219
- name: Set up headless display
216-
uses: pyvista/setup-headless-display-action@f744438e29e50189f40f1749859bac7d0f69b5fa # v4.1
220+
uses: pyvista/setup-headless-display-action@7d84ae825e6d9297a8e99bdbbae20d1b919a0b19 # v4.2
217221

218222
- name: Run pytest
219-
uses: ansys/actions/tests-pytest@2cf9a9c43235a000d613c2b13e64c954232a4553 # v9.0.9
223+
uses: ansys/actions/tests-pytest@dce0e98a78079681554a90abde4ec81a7fa8e06a # v10.0.10
220224
env:
221225
ALLOW_PLOTTING: true
222226
with:

.pre-commit-config.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@ exclude: "tests/integration/files"
77
repos:
88

99
- repo: https://github.com/astral-sh/ruff-pre-commit
10-
rev: v0.11.10
10+
rev: v0.11.13
1111
hooks:
12-
- id: ruff
12+
- id: ruff-check
1313
- id: ruff-format
1414

1515
- repo: https://github.com/codespell-project/codespell

SECURITY.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,15 +34,15 @@ SOFTWARE.
3434
| 0.10.x | :white_check_mark: |
3535
| dev | :white_check_mark: |
3636

37-
## Reporting a Vulnerability
37+
## Reporting a vulnerability
3838

3939
> [!CAUTION]
40-
> Please do not report any security vulnerabilities through GitHub issues.
40+
> Do not use GitHub issues to report any security vulnerabilities.
4141
42-
If you detect a vulnerability, contact the [PyAnsys Core team](mailto:[email protected])
42+
If you detect a vulnerability, contact the [PyAnsys Core team](mailto:[email protected]),
4343
mentioning the repository and the details of your finding. The team will address it as soon as possible.
4444

45-
Please provide us with the following information:
45+
Provide the PyAnsys Core team with this information:
4646

4747
- Any specific configuration settings needed to reproduce the problem
4848
- Step-by-step guidance to reproduce the problem

doc/changelog.d/1912.added.md

Lines changed: 0 additions & 1 deletion
This file was deleted.

doc/changelog.d/1959.maintenance.md

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)