-
Notifications
You must be signed in to change notification settings - Fork 169
Testing and CI
weego edited this page Jun 5, 2026
·
2 revisions
LightAgent uses focused tests for core behavior and GitHub Actions for Python version coverage.
From the repository root:
python -m compileall -q LightAgent tests/test_v065_core.py tests/test_v070_tracing.py tests/test_memory_policy.py tests/test_lightflow.py
PYTHONPATH=. python -m pytest -q tests/test_v065_core.py tests/test_v070_tracing.py tests/test_memory_policy.py tests/test_lightflow.pyThese tests cover structured result compatibility, runtime tools, structured stream events, trace events, memory policy behavior, and LightFlow dependency ordering, retries, result formats, and flow trace events.
The GitHub Actions workflow runs on:
- Python 3.10
- Python 3.11
- Python 3.12
CI steps:
- install requirements
- compile
LightAgent - run focused pytest suite
Workflow file:
.github/workflows/ci.yml
For manual checks, run examples one capability at a time:
python example/01.single_agent.py
python example/02.tools_agent.py
python example/04.multi_agent.py
python example/10.lightflow.pyExamples that call external providers require valid credentials. Memory, MCP, and browser examples require extra setup.
- Keep changes scoped.
- Preserve default
agent.run()compatibility unless a breaking change is intentional. - Add tests for new runtime behavior.
- Update Wiki or docs for public API changes.
- Run focused tests locally before opening a PR.
LightAgent Wiki - see the repository, releases, and issues.
- Home
- Quick Start
- Core Concepts
- API Reference
- Examples Cookbook
- Migration Guide
- Tools
- Tool Generator
- Memory
- MCP
- Skills
- LightFlow
- Tree of Thought
- Self-Learning
- Multi-Agent
- Tracing and Debugging
- Langfuse Observability
- Model Providers
- browser-use Integration
- Testing and CI
- Deployment Guide
- Architecture
- Security
- Known Limitations
- FAQ
- FAQ 中文
- Roadmap
- Release Process
- Contributing