Files
LangBot/pytest.ini
huanghuoguoguo 1f227f7aa8 ci: scope PR checks and run the complete matrix daily (#3056)
* ci: streamline pull request checks and run the full matrix daily

Refs #3055

* ci: run runtime contracts only on affected Core checks

* test(ci): distinguish SDK checks from SDK publication

* fix(ci): retain legacy regressions and scope production image builds

* docs(ci): clarify focused regressions and production image selection
2026-11-17 17:31:50 +08:00

68 lines
2.1 KiB
INI

[pytest]
# Test discovery patterns
python_files = test_*.py
python_classes = Test*
python_functions = test_*
# Python path for imports
pythonpath = . tests
# Test paths
testpaths = tests
# Asyncio configuration
asyncio_mode = auto
# Resource leaks are often reported during object finalization and wrapped by
# pytest. Keep both forms fatal so --disable-warnings cannot hide them.
filterwarnings =
error::ResourceWarning
error::pytest.PytestUnraisableExceptionWarning
# Output options
addopts =
-v
--strict-markers
--tb=short
--disable-warnings
# Markers
markers =
p0_permissions: real Core/Runtime permission lifecycle acceptance
p0_image: production image upgrade and fresh-install acceptance
sdk_core: required Core and SDK protocol contracts
network_plugin: required full-process Plugin Runtime file delivery
artifact_persistence: required uploaded Artifact persistence with independent Core replicas
artifact_mixed: required mixed-media Runner and Artifact lifecycle
skill_persistence: required persistent Skill and media recovery
skill_network: required two-Core Skill execution across independent Runtimes
contract(name): stable behavior obligation for required suites
postgres: required postgres execution suite
session_summary: required session summary boundary and accounting suite
local_agent: required local_agent execution suite
shared_provider_concurrency: required shared-provider concurrency execution suite
security: required security execution suite
compiled_cli: required compiled_cli execution suite
plugin_identity: required plugin_identity execution suite
seekdb: required seekdb execution suite
asyncio: mark test as async
unit: mark test as unit test
integration: mark test as integration test
smoke: mark test as smoke test
slow: mark test as slow running
e2e: mark test as end-to-end test (requires real LangBot process)
# Coverage options (when using pytest-cov)
[coverage:run]
source = langbot
omit =
*/tests/*
*/test_*.py
*/__pycache__/*
*/site-packages/*
[coverage:report]
precision = 2
show_missing = True
skip_covered = False