diff --git a/test/test_encoders.py b/test/test_encoders.py index fef19ac99..b944d56bd 100644 --- a/test/test_encoders.py +++ b/test/test_encoders.py @@ -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, @@ -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 diff --git a/test/utils.py b/test/utils.py index 6f4c77b76..9688bc72c 100644 --- a/test/utils.py +++ b/test/utils.py @@ -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