From 49817bd3bc6575e77174d53f7d542e9f34444e3b Mon Sep 17 00:00:00 2001 From: Alessandro Felder Date: Wed, 15 Nov 2023 10:20:16 +0000 Subject: [PATCH] use pyvista action for headless display in tox (#273) this might fix VTK failures in windows --- .github/workflows/test_and_deploy.yml | 3 +++ tox.ini | 5 +++++ 2 files changed, 8 insertions(+) diff --git a/.github/workflows/test_and_deploy.yml b/.github/workflows/test_and_deploy.yml index 2268ebf9..e76ed9b4 100644 --- a/.github/workflows/test_and_deploy.yml +++ b/.github/workflows/test_and_deploy.yml @@ -36,6 +36,9 @@ jobs: if: runner.os == 'macOS' run: brew install hdf5 + # Helps set up VTK with a headless display + - uses: pyvista/setup-headless-display-action@v2 + # Run tests - uses: neuroinformatics-unit/actions/test@v2 with: diff --git a/tox.ini b/tox.ini index 6a32366a..6fc1dafa 100644 --- a/tox.ini +++ b/tox.ini @@ -14,4 +14,9 @@ extras = commands = pytest -v --color=yes --cov=brainrender --cov-report=xml passenv = + CI + GITHUB_ACTIONS DISPLAY + XAUTHORITY + NUMPY_EXPERIMENTAL_ARRAY_FUNCTION + PYVISTA_OFF_SCREEN