Skip to content

Commit 4630424

Browse files
ci: use v4 of pyvista/setup-headless-display-action (#1934)
Co-authored-by: pyansys-ci-bot <[email protected]>
1 parent e9ea523 commit 4630424

File tree

3 files changed

+9
-34
lines changed

3 files changed

+9
-34
lines changed

.github/workflows/ci_cd.yml

Lines changed: 6 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,6 @@ jobs:
160160
continue-on-error: ${{ matrix.experimental }}
161161
env:
162162
SKIP_UNSTABLE: false
163-
PYVISTA_OFF_SCREEN: true
164163
strategy:
165164
fail-fast: false
166165
matrix:
@@ -203,12 +202,7 @@ jobs:
203202

204203
- name: Set up headless display
205204
if: env.SKIP_UNSTABLE == 'false'
206-
uses: RobPasMue/setup-headless-display-action@offscreen-mesa3d
207-
with:
208-
pyvista: false
209-
# Mesa3D off screen rendering only needed on Windows self-hosted runners
210-
# without GPU support (e.g. pygeometry-ci-2 has GPU, so it doesn't need it)
211-
install-mesa3d-offscreen: ${{ runner.name != 'pygeometry-ci-2' }}
205+
uses: pyvista/setup-headless-display-action@48066dd0b79cf46babc16223a1dce3aa4803ec43 # v4.0
212206

213207
- name: Create Python venv
214208
if: env.SKIP_UNSTABLE == 'false'
@@ -326,11 +320,9 @@ jobs:
326320
name: Documentation
327321
needs: [docs-style]
328322
runs-on: ubuntu-latest
329-
env:
330-
PYVISTA_OFF_SCREEN: true
331323
steps:
332324
- name: Set up headless display
333-
uses: pyvista/setup-headless-display-action@52bda06d59c0fc422fc2512c9c670bf6b66616f8 # v3.2
325+
uses: pyvista/setup-headless-display-action@48066dd0b79cf46babc16223a1dce3aa4803ec43 # v4.0
334326

335327
- name: Login to GitHub Container Registry
336328
uses: docker/login-action@74a5d142397b4f367a81961eba4e8cd7edddf772 # v3.4.0
@@ -406,9 +398,7 @@ jobs:
406398
407399
- name: Set up headless display
408400
if: env.SKIP_UNSTABLE == 'false'
409-
uses: pyvista/setup-headless-display-action@52bda06d59c0fc422fc2512c9c670bf6b66616f8 # v3.2
410-
with:
411-
pyvista: false
401+
uses: pyvista/setup-headless-display-action@48066dd0b79cf46babc16223a1dce3aa4803ec43 # v4.0
412402

413403
- name: Login in Github Container registry
414404
if: env.SKIP_UNSTABLE == 'false'
@@ -484,9 +474,7 @@ jobs:
484474
python-version: ['3.10', '3.11', '3.12', '3.13']
485475
steps:
486476
- name: Set up headless display
487-
uses: pyvista/setup-headless-display-action@52bda06d59c0fc422fc2512c9c670bf6b66616f8 # v3.2
488-
with:
489-
pyvista: false
477+
uses: pyvista/setup-headless-display-action@48066dd0b79cf46babc16223a1dce3aa4803ec43 # v4.0
490478

491479
- name: Login in Github Container registry
492480
uses: docker/login-action@74a5d142397b4f367a81961eba4e8cd7edddf772 # v3.4.0
@@ -686,12 +674,7 @@ jobs:
686674
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
687675

688676
- name: Set up headless display
689-
uses: RobPasMue/setup-headless-display-action@offscreen-mesa3d
690-
with:
691-
pyvista: false
692-
# Mesa3D off screen rendering only needed on Windows self-hosted runners
693-
# without GPU support (e.g. pygeometry-ci-2 has GPU, so it doesn't need it)
694-
install-mesa3d-offscreen: ${{ runner.name != 'pygeometry-ci-2' }}
677+
uses: pyvista/setup-headless-display-action@48066dd0b79cf46babc16223a1dce3aa4803ec43 # v4.0
695678

696679
- name: Set up Python
697680
uses: actions/setup-python@8d9ed9ac5c53483de85588cdf95a591a75ab9f55 # v5.5.0
@@ -792,9 +775,7 @@ jobs:
792775
python-version: ${{ env.MAIN_PYTHON_VERSION }}
793776

794777
- name: Set up headless display
795-
uses: pyvista/setup-headless-display-action@52bda06d59c0fc422fc2512c9c670bf6b66616f8 # v3.2
796-
with:
797-
pyvista: false
778+
uses: pyvista/setup-headless-display-action@48066dd0b79cf46babc16223a1dce3aa4803ec43 # v4.0
798779

799780
- name: Download Linux binaries
800781
uses: actions/download-artifact@95815c38cf2ff2164869cbab79da8d1f422bc89e # v4.2.1

.github/workflows/nightly_docker_test.yml

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -100,12 +100,7 @@ jobs:
100100
python-version: ${{ env.MAIN_PYTHON_VERSION }}
101101

102102
- name: Set up headless display
103-
uses: RobPasMue/setup-headless-display-action@offscreen-mesa3d
104-
with:
105-
pyvista: false
106-
# Mesa3D off screen rendering only needed on Windows self-hosted runners
107-
# without GPU support (e.g. pygeometry-ci-2 has GPU, so it doesn't need it)
108-
install-mesa3d-offscreen: ${{ runner.name != 'pygeometry-ci-2' }}
103+
uses: pyvista/setup-headless-display-action@48066dd0b79cf46babc16223a1dce3aa4803ec43 # v4.0
109104

110105
- name: Create Python venv
111106
run: |
@@ -218,9 +213,7 @@ jobs:
218213
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 }}
219214
220215
- name: Set up headless display
221-
uses: pyvista/setup-headless-display-action@52bda06d59c0fc422fc2512c9c670bf6b66616f8 # v3.2
222-
with:
223-
pyvista: false
216+
uses: pyvista/setup-headless-display-action@48066dd0b79cf46babc16223a1dce3aa4803ec43 # v4.0
224217

225218
- name: Run pytest
226219
uses: ansys/actions/tests-pytest@1f1f205361706d22f67c71c29b775222380cd95a # v9.0.6
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
use v4 of pyvista/setup-headless-display-action

0 commit comments

Comments
 (0)