From d40ab288fa11b7df6e15252c0c3b9f2fdc54352b Mon Sep 17 00:00:00 2001 From: alessandrofelder Date: Wed, 15 Nov 2023 09:00:27 +0000 Subject: [PATCH] use pyvista action for headless display in tox 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