From 7862b1f1607afe95bf64f99e03c4d53475bfd390 Mon Sep 17 00:00:00 2001 From: cvanelteren Date: Wed, 29 Oct 2025 10:16:53 +0100 Subject: [PATCH] skip test_demos on gha --- ultraplot/tests/test_demos.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/ultraplot/tests/test_demos.py b/ultraplot/tests/test_demos.py index ebaf9a24d..f76d86ffd 100644 --- a/ultraplot/tests/test_demos.py +++ b/ultraplot/tests/test_demos.py @@ -1,7 +1,12 @@ -import numpy as np, pytest, ultraplot as plt +import numpy as np, pytest, ultraplot as plt, os import matplotlib.font_manager as mfonts import ultraplot.demos as demos +# Skip all tests in this module when running on GitHub Actions +pytestmark = pytest.mark.skipif( + os.getenv("GITHUB_ACTIONS") == "true", reason="Skip tests on GitHub Actions" +) + def test_show_channels_requires_arg(): """show_channels should raise when no positional colormap is provided."""