Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix video test #276

Merged
merged 1 commit into from
Nov 16, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .github/workflows/test_and_deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,10 @@ jobs:
# Helps set up VTK with a headless display
- uses: pyvista/setup-headless-display-action@v2

# Sets up ffmpeg to we can run video tests on CI
- uses: FedericoCarboni/setup-ffmpeg@v2
id: setup-ffmpeg

# Run tests
- uses: neuroinformatics-unit/actions/test@v2
with:
Expand Down
5 changes: 0 additions & 5 deletions tests/test_video.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,9 @@
from pathlib import Path

import pytest

from brainrender.scene import Scene
from brainrender.video import Animation, VideoMaker


@pytest.mark.local
def test_video():
s = Scene(title="BR")

Expand All @@ -21,7 +18,6 @@ def test_video():
path.unlink()


@pytest.mark.local
def test_video_custom():
def custom(scene, *args, **kwargs):
return
Expand All @@ -40,7 +36,6 @@ def custom(scene, *args, **kwargs):
path.unlink()


@pytest.mark.local
def test_animation():
# Create a brainrender scene
scene = Scene(title="brain regions", inset=False)
Expand Down