Skip to content

Commit 5604c49

Browse files
committed
mark test_examples so it only runs on a cmi release
1 parent 74d72fc commit 5604c49

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

tests/test_examples.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
1+
import os
12
import runpy
23

4+
import pytest
5+
6+
# Run example scripts only on release
7+
if not os.getenv("RUN_EXAMPLES"):
8+
pytest.skip("Skipping test_examples.py", allow_module_level=True)
9+
310

411
def test_all_examples(tmp_examples):
512
"""Run all example scripts to ensure they execute without error."""

0 commit comments

Comments
 (0)