File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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+
2935def 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 :
You can’t perform that action at this time.
0 commit comments