ci: ignore test scripts under managed_components

This commit is contained in:
Fu Hanxi
2023-07-19 10:20:13 +08:00
parent 79b15bd410
commit 7610e535ea

View File

@@ -214,7 +214,7 @@ def get_pytest_files(paths: List[str]) -> List[str]:
pytest_scripts: Set[str] = set() pytest_scripts: Set[str] = set()
for p in paths: for p in paths:
path = Path(p) path = Path(p)
pytest_scripts.update(str(_p) for _p in path.glob('**/pytest_*.py')) pytest_scripts.update(str(_p) for _p in path.glob('**/pytest_*.py') if 'managed_components' not in _p.parts)
return list(pytest_scripts) return list(pytest_scripts)