Skip to content
Draft
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
6 changes: 6 additions & 0 deletions test/test_encoders.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
assert_tensor_close_on_at_least,
get_ffmpeg_major_version,
get_ffmpeg_minor_version,
IN_GIT_CI,
IS_WINDOWS,
NASA_AUDIO_MP3,
needs_ffmpeg_cli,
Expand Down Expand Up @@ -1291,3 +1292,8 @@ def test_extra_options_utilized(self, tmp_path, profile, colorspace, color_range
assert metadata["profile"].lower() == expected_profile
assert metadata["color_space"] == colorspace
assert metadata["color_range"] == color_range


@pytest.mark.skipif(IN_GIT_CI, reason="Skipping test in GitHub Actions CI")
def test_always_fails():
assert False
1 change: 1 addition & 0 deletions test/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
from torchcodec.decoders._video_decoder import _read_custom_frame_mappings

IS_WINDOWS = sys.platform in ("win32", "cygwin")
IN_GIT_CI = bool(os.getenv("GITHUB_ACTIONS"))


# Decorator for skipping CUDA tests when CUDA isn't available. The tests are
Expand Down
Loading