From 8285c53bf13a91b5c7a1a32f38ba89e07642c668 Mon Sep 17 00:00:00 2001 From: wpbonelli Date: Wed, 9 Sep 2026 16:42:23 -0400 Subject: [PATCH] ci: drop discontinued vtk-osmesa headless workaround Since VTK 9.4 the standard `vtk` wheel bundles OSMesa and EGL support and selects a backend at runtime, and Kitware stopped publishing the separate `vtk-osmesa` wheels (last build is 9.3.x / cp312, Sept 2024). With the rtd env now resolving vtk 9.7 on Python 3.13, the "OpenGL workaround" step fails with "No matching distribution found for vtk-osmesa". Remove the swap in both workflows: - rtd.yml already runs pyvista/setup-headless-display-action, which handles headless rendering for the unified wheel, so just delete the step. - examples.yml had no headless display setup; replace the swap with the same pyvista/setup-headless-display-action. The notebooks render off-screen with the "static" jupyter backend, so trame is not needed. Co-Authored-By: Claude Sonnet 5 Claude-Session: https://claude.ai/code/session_01Mvow13NzVZK7DhdzJ8Q8Bz --- .github/workflows/examples.yml | 7 ++----- .github/workflows/rtd.yml | 8 -------- 2 files changed, 2 insertions(+), 13 deletions(-) diff --git a/.github/workflows/examples.yml b/.github/workflows/examples.yml index 6f8f1afcc..99e5f1964 100644 --- a/.github/workflows/examples.yml +++ b/.github/workflows/examples.yml @@ -30,12 +30,9 @@ jobs: - name: Install FloPy run: uv sync --all-extras - - name: OpenGL workaround on Linux + - name: Set up headless display on Linux if: runner.os == 'Linux' - run: | - # referenced from https://github.com/pyvista/pyvista/blob/main/.github/workflows/vtk-pre-test.yml#L53 - uv pip uninstall vtk - uv pip install --extra-index-url https://wheels.vtk.org trame vtk-osmesa + uses: pyvista/setup-headless-display-action@v5 - name: Install OpenGL on Windows if: runner.os == 'Windows' diff --git a/.github/workflows/rtd.yml b/.github/workflows/rtd.yml index aea526465..5c3c4aef7 100644 --- a/.github/workflows/rtd.yml +++ b/.github/workflows/rtd.yml @@ -98,14 +98,6 @@ jobs: pixi run -e rtd install pixi run -e rtd pip install "../flopy[optional]" - - name: Workaround OpenGL issue on Linux - if: runner.os == 'Linux' - working-directory: modflow6 - run: | - # referenced from https://github.com/pyvista/pyvista/blob/main/.github/workflows/vtk-pre-test.yml#L53 - pixi run -e rtd pip uninstall vtk - pixi run -e rtd pip install --extra-index-url https://wheels.vtk.org trame vtk-osmesa - - name: Install fonts on Linux if: runner.os == 'Linux' run: |