Skip to content

Commit c445e82

Browse files
committed
ci: update to skip camera tests in CI
1 parent 459c4ff commit c445e82

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

test/test_3d_reconstruction.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -65,9 +65,9 @@ def tearDownClass(cls):
6565
print(f"Stopping gzserver (PID={proc.pid})")
6666
proc.terminate()
6767

68-
@pytest.mark.skipif(
69-
os.environ.get("CI") == "true",
70-
reason="Camera tests are unreliable in CI environments",
68+
@unittest.skipIf(
69+
os.environ.get("CI") == "true" or os.environ.get("GITHUB_ACTIONS") == "true",
70+
"Camera tests are unreliable in CI environments",
7171
)
7272
def test_camera_topics(self, proc_output):
7373
"""Test that camera topics are publishing msgs."""
@@ -106,9 +106,9 @@ def test_camera_topics(self, proc_output):
106106

107107
print("\n--- Camera Topics Test Completed Successfully ---")
108108

109-
@pytest.mark.skipif(
110-
os.environ.get("CI") == "true",
111-
reason="Camera tests are unreliable in CI environments",
109+
@unittest.skipIf(
110+
os.environ.get("CI") == "true" or os.environ.get("GITHUB_ACTIONS") == "true",
111+
"Camera tests are unreliable in CI environments",
112112
)
113113
def test_camera_images(self, proc_output):
114114
"""Test that camera images are published."""

0 commit comments

Comments
 (0)