mirror of
https://github.com/microsoft/agent-framework.git
synced 2026-06-16 21:04:09 +08:00
Python: Simplify Python Poe tasks and unify package selectors (#4722)
* updated automation tasks and commands, with alias for the time being * Restore aggregate test exclusions Preserve the legacy all-tests scope for test --all by excluding lab and devui from the default aggregate sweep, while still allowing explicit package selection. Also ignore hidden/generated test directories such as .mypy_cache during aggregate discovery. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> * updated versions in pre-commit --------- Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
Unverified
parent
d3d0100822
commit
f48c4512d3
@@ -71,10 +71,10 @@ uv run --directory packages/lab poe test
|
||||
uv run --directory packages/lab pytest -q -m "not integration"
|
||||
```
|
||||
|
||||
When you need to run package tasks from the repository root, use sequential mode to avoid launching all package tests in parallel:
|
||||
When you need to run lab tests from the repository root, scope the root task to the lab package:
|
||||
|
||||
```bash
|
||||
uv run poe test --seq
|
||||
uv run poe test -P lab
|
||||
```
|
||||
|
||||
Lightning observability tests intentionally exercise heavier tracing paths and are marked as `resource_intensive`:
|
||||
|
||||
@@ -146,17 +146,45 @@ exclude_dirs = ["gaia/tests", "lightning/tests", "tau2/tests"]
|
||||
[tool.poe]
|
||||
include = "../../shared_tasks.toml"
|
||||
|
||||
[tool.poe.tasks]
|
||||
mypy-gaia = "mypy --config-file $POE_ROOT/pyproject.toml gaia/agent_framework_lab_gaia"
|
||||
mypy-lightning = "mypy --config-file $POE_ROOT/pyproject.toml lightning/agent_framework_lab_lightning"
|
||||
mypy-tau2 = "mypy --config-file $POE_ROOT/pyproject.toml tau2/agent_framework_lab_tau2"
|
||||
mypy = ["mypy-gaia", "mypy-lightning", "mypy-tau2"]
|
||||
test = 'pytest -m "not integration and not resource_intensive" --cov-report=term-missing:skip-covered --junitxml=test-results.xml'
|
||||
test-gaia = "pytest gaia/tests --cov=agent_framework_lab_gaia --cov-report=term-missing:skip-covered"
|
||||
test-lightning = "pytest lightning/tests --cov=agent_framework_lab_lightning --cov-report=term-missing:skip-covered"
|
||||
test-tau2 = "pytest tau2/tests --cov=agent_framework_lab_tau2 --cov-report=term-missing:skip-covered"
|
||||
build = "echo 'Skipping build'"
|
||||
publish = "echo 'Skipping publish'"
|
||||
[tool.poe.tasks.mypy-gaia]
|
||||
help = "Run MyPy for the lab GAIA package."
|
||||
cmd = "mypy --config-file $POE_ROOT/pyproject.toml gaia/agent_framework_lab_gaia"
|
||||
|
||||
[tool.poe.tasks.mypy-lightning]
|
||||
help = "Run MyPy for the lab Lightning package."
|
||||
cmd = "mypy --config-file $POE_ROOT/pyproject.toml lightning/agent_framework_lab_lightning"
|
||||
|
||||
[tool.poe.tasks.mypy-tau2]
|
||||
help = "Run MyPy for the lab Tau2 package."
|
||||
cmd = "mypy --config-file $POE_ROOT/pyproject.toml tau2/agent_framework_lab_tau2"
|
||||
|
||||
[tool.poe.tasks.mypy]
|
||||
help = "Run MyPy across all lab subpackages."
|
||||
sequence = ["mypy-gaia", "mypy-lightning", "mypy-tau2"]
|
||||
|
||||
[tool.poe.tasks.test]
|
||||
help = "Run the default lab unit test suite."
|
||||
cmd = 'pytest -m "not integration and not resource_intensive" --cov-report=term-missing:skip-covered --junitxml=test-results.xml'
|
||||
|
||||
[tool.poe.tasks.test-gaia]
|
||||
help = "Run the GAIA lab test suite."
|
||||
cmd = "pytest gaia/tests --cov=agent_framework_lab_gaia --cov-report=term-missing:skip-covered"
|
||||
|
||||
[tool.poe.tasks.test-lightning]
|
||||
help = "Run the Lightning lab test suite."
|
||||
cmd = "pytest lightning/tests --cov=agent_framework_lab_lightning --cov-report=term-missing:skip-covered"
|
||||
|
||||
[tool.poe.tasks.test-tau2]
|
||||
help = "Run the Tau2 lab test suite."
|
||||
cmd = "pytest tau2/tests --cov=agent_framework_lab_tau2 --cov-report=term-missing:skip-covered"
|
||||
|
||||
[tool.poe.tasks.build]
|
||||
help = "Skip build for the lab package."
|
||||
cmd = "echo 'Skipping build'"
|
||||
|
||||
[tool.poe.tasks.publish]
|
||||
help = "Skip publish for the lab package."
|
||||
cmd = "echo 'Skipping publish'"
|
||||
|
||||
[tool.pytest.ini_options]
|
||||
pythonpath = ["."]
|
||||
|
||||
Reference in New Issue
Block a user