Skip to content

Commit

Permalink
use pyvista action for headless display in tox (#273)
Browse files Browse the repository at this point in the history
this might fix VTK failures in windows
  • Loading branch information
alessandrofelder authored Nov 15, 2023
1 parent 8866e3a commit 49817bd
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/test_and_deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
5 changes: 5 additions & 0 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 49817bd

Please sign in to comment.