Python: Add more packages to unit test coverage gate (#3831)

* Add more packages to unit test coverage gate

* Trigger workflow

* Remove azure ai search

* Add purview

* Add declarative to coverage report
This commit is contained in:
Tao Chen
2026-02-11 11:37:38 -08:00
committed by GitHub
Unverified
parent ecabb5f592
commit 654f099c42
3 changed files with 7 additions and 3 deletions
@@ -718,7 +718,7 @@ class WorkflowAgent(BaseAgent):
def _extract_contents(self, data: Any) -> list[Content]:
"""Recursively extract Content from workflow output data."""
if isinstance(data, list):
return [c for item in data for c in self._extract_contents(item)]
return [c for item in data for c in self._extract_contents(item)] # type: ignore
if isinstance(data, Content):
return [data] # type: ignore[redundant-cast]
if isinstance(data, str):
+2
View File
@@ -241,6 +241,7 @@ pytest --import-mode=importlib
--cov=agent_framework_ag_ui
--cov=agent_framework_anthropic
--cov=agent_framework_azure_ai
--cov=agent_framework_azure_ai_search
--cov=agent_framework_azurefunctions
--cov=agent_framework_chatkit
--cov=agent_framework_copilotstudio
@@ -248,6 +249,7 @@ pytest --import-mode=importlib
--cov=agent_framework_purview
--cov=agent_framework_redis
--cov=agent_framework_orchestrations
--cov=agent_framework_declarative
--cov-config=pyproject.toml
--cov-report=term-missing:skip-covered
--ignore-glob=packages/lab/**