ci: skip pytest cases in managed_components

pull/13022/head
Fu Hanxi 2023-11-30 09:08:01 +01:00
rodzic 7df8574119
commit 1f0f661979
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 19399699CF3C4B16
2 zmienionych plików z 2 dodań i 1 usunięć

Wyświetl plik

@ -12,6 +12,7 @@ addopts =
--skip-check-coredump y
--logfile-extension ".txt"
--check-duplicates y
--ignore-glob "*/managed_components/*"
# ignore DeprecationWarning
filterwarnings =

Wyświetl plik

@ -214,7 +214,7 @@ def get_pytest_files(paths: List[str]) -> List[str]:
pytest_scripts: Set[str] = set()
for p in paths:
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)