Skip to content

Commit ab256dd

Browse files
committed
Skip heavy smoke checks in CI-light pytest mode
1 parent 9cdf1dc commit ab256dd

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

python/tests/test_help_topics.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
from __future__ import annotations
22

3+
import os
4+
5+
import pytest
6+
37
from examples.help_topics._common import run_topic
48

59
TOPICS = [
@@ -32,6 +36,8 @@
3236

3337

3438
def test_help_topics_all_run(repo_root) -> None:
39+
if os.environ.get("NSTAT_CI_LIGHT") == "1":
40+
pytest.skip("Help-topic execution already validated in dedicated CI workflow step")
3541
for topic in TOPICS:
3642
out = run_topic(topic, repo_root)
3743
assert isinstance(out, dict)

python/tests/test_implemented_method_smoke.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
from __future__ import annotations
22

33
import json
4+
import os
45
from pathlib import Path
56

67
import numpy as np
8+
import pytest
79

810
from nstat import Analysis, CIFModel, ConfigCollection, Covariate, CovariateCollection, SpikeTrain, SpikeTrainCollection, Trial, TrialConfig
911
from nstat.DecodingAlgorithms import DecodingAlgorithms
@@ -87,6 +89,8 @@ def test_implemented_method_set_matches_matrix(repo_root) -> None:
8789

8890

8991
def test_implemented_methods_smoke_execute() -> None:
92+
if os.environ.get("NSTAT_CI_LIGHT") == "1":
93+
pytest.skip("Heavy method execution smoke is skipped in CI-light mode")
9094
trial, cfgs, fits = _build_trial_and_fits()
9195

9296
# nstColl / Trial / CovColl / TrialConfig / ConfigColl / History

0 commit comments

Comments
 (0)