Skip to content

Commit 7748a8e

Browse files
RobPasMuepyansys-ci-botpre-commit-ci[bot]
authored
ci: fix issues with OSMesa installation and env variables set up (#1927)
Co-authored-by: pyansys-ci-bot <92810346+pyansys-ci-bot@users.noreply.github.com> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
1 parent 2007ebd commit 7748a8e

File tree

3 files changed

+17
-2
lines changed

3 files changed

+17
-2
lines changed

.github/workflows/ci_cd.yml

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,9 +203,12 @@ jobs:
203203

204204
- name: Set up headless display
205205
if: env.SKIP_UNSTABLE == 'false'
206-
uses: pyvista/setup-headless-display-action@52bda06d59c0fc422fc2512c9c670bf6b66616f8 # v3.2
206+
uses: RobPasMue/setup-headless-display-action@offscreen-mesa3d
207207
with:
208208
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' }}
209212

210213
- name: Create Python venv
211214
if: env.SKIP_UNSTABLE == 'false'
@@ -682,6 +685,14 @@ jobs:
682685
- name: Checkout repository
683686
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
684687

688+
- 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' }}
695+
685696
- name: Set up Python
686697
uses: actions/setup-python@8d9ed9ac5c53483de85588cdf95a591a75ab9f55 # v5.5.0
687698
with:

.github/workflows/nightly_docker_test.yml

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

102102
- name: Set up headless display
103-
uses: pyvista/setup-headless-display-action@52bda06d59c0fc422fc2512c9c670bf6b66616f8 # v3.2
103+
uses: RobPasMue/setup-headless-display-action@offscreen-mesa3d
104104
with:
105105
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' }}
106109

107110
- name: Create Python venv
108111
run: |

doc/changelog.d/1927.maintenance.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
fix issues with OSMesa installation and env variables set up

0 commit comments

Comments
 (0)