Skip to content

Commit 4078a93

Browse files
authored
skip test_demos on gha (#391)
1 parent c5a017a commit 4078a93

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

ultraplot/tests/test_demos.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,12 @@
1-
import numpy as np, pytest, ultraplot as plt
1+
import numpy as np, pytest, ultraplot as plt, os
22
import matplotlib.font_manager as mfonts
33
import ultraplot.demos as demos
44

5+
# Skip all tests in this module when running on GitHub Actions
6+
pytestmark = pytest.mark.skipif(
7+
os.getenv("GITHUB_ACTIONS") == "true", reason="Skip tests on GitHub Actions"
8+
)
9+
510

611
def test_show_channels_requires_arg():
712
"""show_channels should raise when no positional colormap is provided."""

0 commit comments

Comments
 (0)