mirror of
https://github.com/microsoft/agent-framework.git
synced 2026-06-16 21:04:09 +08:00
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:
committed by
GitHub
Unverified
parent
ecabb5f592
commit
654f099c42
@@ -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):
|
||||
|
||||
@@ -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/**
|
||||
|
||||
Reference in New Issue
Block a user