Skip to content

Commit 90761f2

Browse files
committed
Update pytest_groups.py
1 parent 6f3f60b commit 90761f2

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

pytest_groups.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,12 @@
2626
"brainpy/_src/math/object_transform/tests/test_base.py", # causes state pollution
2727
]
2828

29+
# Additional files that need isolation in CI environments
30+
CI_ISOLATED_FILES = [
31+
"brainpy/_src/math/object_transform/tests/test_autograd.py", # unhashable Array type in CI
32+
"brainpy/_src/math/object_transform/tests/test_controls.py", # unhashable Array type in CI
33+
]
34+
2935
def run_isolated_test(test_path):
3036
"""Run a single problematic test in isolation."""
3137
print(f"Running isolated: {test_path}")
@@ -56,6 +62,10 @@ def main():
5662
ignore_patterns = []
5763
all_problematic_files = set(ISOLATED_FILES)
5864

65+
# In CI environments, also isolate CI-specific problematic files
66+
if is_github_actions:
67+
all_problematic_files.update(CI_ISOLATED_FILES)
68+
5969
# Add files from isolated tests to ignore list
6070
for test in ISOLATED_TESTS:
6171
if "::" in test:

0 commit comments

Comments
 (0)