Commit 2588b3cc authored by Thomas Dowrick's avatar Thomas Dowrick

Try different way of skipping test on Mac CI

parent f72ee8e3
Pipeline #3968 failed with stages
in 8 minutes and 33 seconds
......@@ -12,6 +12,6 @@ pylint
sphinx
sphinx_rtd_theme
pyinstaller
pytest==5.3.1
pytest
pytest-qt
tox
......@@ -4,13 +4,15 @@
from sksurgeryutils.ui.sksurgerytextoverlay_demo import TextOverlayDemo
import pytest
import platform
import os
import sys
in_gitlab_ci = str(os.environ.get('GITLAB_CI'))
if sys.platform == "darwin" and in_gitlab_ci:
pytest.skip("skipping tests on Mac CI", allow_module_level=True)
def test_sksurgerytextoverlay():
""" Basic test to run the widget and make sure everything loads OK."""
if sys.platform == "darwin":
pytest.skip("Test not working on Mac runner")
# Use input video rather than camera to test
input_file = 'tests/data/test_video.avi'
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment