Skip to content

Commit b7fbbb9

Browse files
Merge branch 'main' into feat/sweepable_body_detection
2 parents 0f70f72 + bfdb0d9 commit b7fbbb9

File tree

81 files changed

+2279
-210
lines changed

Some content is hidden

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

81 files changed

+2279
-210
lines changed

.github/workflows/backwards_compatibility.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ jobs:
4545
backend-version: "25.1"
4646

4747
steps:
48-
- uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5.0.1
48+
- uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0
4949
with:
5050
persist-credentials: false
5151

@@ -166,7 +166,7 @@ jobs:
166166
backend-version: "25.2"
167167
windows-runner: "windows-2025"
168168
steps:
169-
- uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5.0.1
169+
- uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0
170170
with:
171171
persist-credentials: false
172172

.github/workflows/ci_cd.yml

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ jobs:
208208
Write-Output "SKIP_UNSTABLE=$Result" | Out-File -FilePath $env:GITHUB_ENV -Append
209209
Write-Output "SKIP_UNSTABLE will be: $Result"
210210
211-
- uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5.0.1
211+
- uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0
212212
if: env.SKIP_UNSTABLE == 'false'
213213
with:
214214
persist-credentials: false
@@ -348,7 +348,9 @@ jobs:
348348
add-pdf-html-docs-as-assets: true
349349
needs-quarto: true
350350
dependencies: 'pandoc'
351-
sphinxopts: '-j 1 -W --color'
351+
# sphinxopts: '-j 1 -W --color'
352+
# TODO: Re-enable warnings as errors when numpydoc issues are fixed
353+
sphinxopts: '-j 1'
352354
group-dependencies-name: "doc"
353355

354356
- name: Stop the Geometry service
@@ -425,7 +427,7 @@ jobs:
425427
426428
- name: Checkout repository
427429
if: env.SKIP_UNSTABLE == 'false'
428-
uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5.0.1
430+
uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0
429431
with:
430432
persist-credentials: false
431433

@@ -505,7 +507,7 @@ jobs:
505507
password: ${{ secrets.GITHUB_TOKEN }}
506508

507509
- name: Checkout repository
508-
uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5.0.1
510+
uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0
509511
with:
510512
persist-credentials: false
511513

@@ -557,7 +559,7 @@ jobs:
557559
password: ${{ secrets.GITHUB_TOKEN }}
558560

559561
- name: Checkout repository
560-
uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5.0.1
562+
uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0
561563
with:
562564
persist-credentials: false
563565

@@ -626,7 +628,7 @@ jobs:
626628

627629
steps:
628630
- name: Check out repository pyansys-geometry-binaries
629-
uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5.0.1
631+
uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0
630632
with:
631633
repository: 'ansys/pyansys-geometry-binaries'
632634
token: ${{ secrets.BINARIES_TOKEN }}
@@ -705,7 +707,7 @@ jobs:
705707
zip-file: "windows-core-binaries.zip"
706708
steps:
707709
- name: Checkout repository
708-
uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5.0.1
710+
uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0
709711
with:
710712
persist-credentials: false
711713

@@ -817,7 +819,7 @@ jobs:
817819
needs: [fetch-release-artifacts]
818820
steps:
819821
- name: Checkout repository
820-
uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5.0.1
822+
uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0
821823
with:
822824
persist-credentials: false
823825

.github/workflows/codeql.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
security-events: write
2222
steps:
2323
- name: Checkout repository
24-
uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5.0.1
24+
uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0
2525
with:
2626
persist-credentials: false
2727

.github/workflows/label.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525
contents: write
2626
pull-requests: write
2727
steps:
28-
- uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5.0.1
28+
- uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0
2929
with:
3030
persist-credentials: false
3131
- uses: micnncim/action-label-syncer@3abd5ab72fda571e69fffd97bd4e0033dd5f495c # v1.3.0

.github/workflows/nightly_docker_test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ jobs:
100100
contents: read
101101
packages: read
102102
steps:
103-
- uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5.0.1
103+
- uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0
104104
with:
105105
persist-credentials: false
106106

.github/workflows/v1_testing.yml

Lines changed: 160 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,160 @@
1+
name: v1 Protos Testing
2+
on:
3+
workflow_dispatch:
4+
5+
env:
6+
MAIN_PYTHON_VERSION: '3.13'
7+
ANSRV_GEO_IMAGE: 'ghcr.io/ansys/geometry'
8+
ANSRV_GEO_PORT: 700
9+
ANSRV_GEO_LICENSE_SERVER: ${{ secrets.LICENSE_SERVER }}
10+
GEO_CONT_NAME: ans_geo
11+
RESET_IMAGE_CACHE: 0
12+
13+
permissions:
14+
contents: read
15+
packages: read
16+
17+
jobs:
18+
testing-windows-v1:
19+
name: Testing and coverage (Windows - v1 Protos)
20+
runs-on: windows-latest
21+
strategy:
22+
fail-fast: false
23+
matrix:
24+
python-version: ['3.10', '3.13']
25+
26+
steps:
27+
- uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0
28+
with:
29+
persist-credentials: false
30+
31+
- name: Set up Python
32+
uses: actions/setup-python@e797f83bcb11b83ae66e0230d6156d7c80228e7c # v6.0.0
33+
with:
34+
python-version: ${{ matrix.python-version }}
35+
36+
- name: Set up headless display
37+
uses: pyvista/setup-headless-display-action@7d84ae825e6d9297a8e99bdbbae20d1b919a0b19 # v4.2
38+
39+
- name: Install packages for testing
40+
run: |
41+
python -m pip install --upgrade pip
42+
pip install --upgrade build wheel
43+
pip install -e . --group tests
44+
45+
- name: Login to GitHub Container Registry
46+
uses: docker/login-action@5e57cd118135c172c3672efd75eb46360885c0ef # v3.6.0
47+
with:
48+
registry: ghcr.io
49+
username: ${{ github.actor }}
50+
password: ${{ secrets.GITHUB_TOKEN }}
51+
52+
- name: Download Geometry service container (if needed)
53+
env:
54+
FULL_IMAGE_NAME: "${{ env.ANSRV_GEO_IMAGE }}:core-windows-latest"
55+
run: |
56+
Write-Host "Pulling Docker image: $env:FULL_IMAGE_NAME"
57+
docker pull $env:FULL_IMAGE_NAME
58+
59+
- name: Start Geometry service and verify start
60+
env:
61+
FULL_IMAGE_NAME: "${{ env.ANSRV_GEO_IMAGE }}:core-windows-latest"
62+
PORT_MAPPING: "${{ env.ANSRV_GEO_PORT }}:50051"
63+
TRANSPORT_MODE_SELECTION: ${{ secrets.TRANSPORT_MODE_SELECTION }}
64+
run: |
65+
# Write command to file launch.txt for sanitizing purposes
66+
echo "docker run --detach --name $env:GEO_CONT_NAME -e LICENSE_SERVER=$env:ANSRV_GEO_LICENSE_SERVER -p $env:PORT_MAPPING $env:FULL_IMAGE_NAME $env:TRANSPORT_MODE_SELECTION" | Out-File -FilePath launch.txt
67+
# Read the file and execute the command
68+
$command = Get-Content -Path launch.txt | Select-String -Pattern "docker run"
69+
Invoke-Expression $command.Line
70+
Start-Sleep -Seconds 10
71+
python -c "from ansys.geometry.core.connection.validate import validate; validate()"
72+
73+
- name: Restore images cache
74+
uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0
75+
with:
76+
path: .\tests\integration\image_cache
77+
key: pyvista-image-cache-${{ runner.os }}-v-${{ env.RESET_IMAGE_CACHE }}-${{ hashFiles('pyproject.toml') }}
78+
restore-keys: pyvista-image-cache-${{ runner.os }}-v-${{ env.RESET_IMAGE_CACHE }}
79+
lookup-only: true
80+
81+
- name: Testing
82+
timeout-minutes: 20 # Sometimes hangs...
83+
run: |
84+
pytest -v --proto-version=v1
85+
86+
- name: Stop the Geometry service
87+
if: always()
88+
run: |
89+
docker stop $env:GEO_CONT_NAME
90+
docker logs $env:GEO_CONT_NAME
91+
docker rm $env:GEO_CONT_NAME
92+
93+
testing-linux-v1:
94+
name: Testing and coverage (Linux - v1 Protos)
95+
runs-on: ubuntu-latest
96+
strategy:
97+
fail-fast: false
98+
matrix:
99+
python-version: ['3.10', '3.13']
100+
101+
steps:
102+
- uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0
103+
with:
104+
persist-credentials: false
105+
106+
- name: Set up Python
107+
uses: actions/setup-python@e797f83bcb11b83ae66e0230d6156d7c80228e7c # v6.0.0
108+
with:
109+
python-version: ${{ matrix.python-version }}
110+
111+
- name: Set up headless display
112+
uses: pyvista/setup-headless-display-action@7d84ae825e6d9297a8e99bdbbae20d1b919a0b19 # v4.2
113+
114+
- name: Install packages for testing
115+
run: |
116+
python -m pip install --upgrade pip
117+
pip install --upgrade build wheel
118+
pip install -e . --group tests
119+
120+
- name: Login to GitHub Container Registry
121+
uses: docker/login-action@5e57cd118135c172c3672efd75eb46360885c0ef # v3.6.0
122+
with:
123+
registry: ghcr.io
124+
username: ${{ github.actor }}
125+
password: ${{ secrets.GITHUB_TOKEN }}
126+
127+
- name: Download Geometry service container (if needed)
128+
env:
129+
FULL_IMAGE_NAME: "${{ env.ANSRV_GEO_IMAGE }}:core-linux-latest"
130+
run: |
131+
echo "Pulling Docker image: ${FULL_IMAGE_NAME}"
132+
docker pull ${FULL_IMAGE_NAME}
133+
134+
- name: Start Geometry service and verify start
135+
env:
136+
FULL_IMAGE_NAME: "${{ env.ANSRV_GEO_IMAGE }}:core-linux-latest"
137+
TRANSPORT_MODE_SELECTION: ${{ secrets.TRANSPORT_MODE_SELECTION }}
138+
run: |
139+
docker run --detach --name ${GEO_CONT_NAME} -e LICENSE_SERVER=${ANSRV_GEO_LICENSE_SERVER} -p ${ANSRV_GEO_PORT}:50051 ${FULL_IMAGE_NAME} ${TRANSPORT_MODE_SELECTION}
140+
python -c "from ansys.geometry.core.connection.validate import validate; validate()"
141+
142+
- name: Restore images cache
143+
uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0
144+
with:
145+
path: tests/integration/image_cache
146+
key: pyvista-image-cache-${{ runner.os }}-v-${{ env.RESET_IMAGE_CACHE }}-${{ hashFiles('pyproject.toml') }}
147+
restore-keys: pyvista-image-cache-${{ runner.os }}-v-${{ env.RESET_IMAGE_CACHE }}
148+
lookup-only: true
149+
150+
- name: Testing
151+
timeout-minutes: 20 # Sometimes hangs...
152+
run: |
153+
pytest -v --proto-version=v1
154+
155+
- name: Stop the Geometry service
156+
if: always()
157+
run: |
158+
docker stop ${GEO_CONT_NAME}
159+
docker logs ${GEO_CONT_NAME}
160+
docker rm ${GEO_CONT_NAME}

SECURITY.md

Lines changed: 7 additions & 7 deletions

doc/changelog.d/2334.maintenance.md

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

doc/changelog.d/2335.maintenance.md

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

doc/changelog.d/2339.maintenance.md

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

0 commit comments

Comments
 (0)