Repo-root 'pytest --collect-only' failed with ImportPathMismatchError because agent-team/tests/ and the root tests/ are both the 'tests' package. Add a root conftest.py that excludes agent-team from the root collection, and a dedicated agent-team-tests CI job that runs the (API-key-free) agent-team suite in its own working dir.
12 lines
614 B
Python
12 lines
614 B
Python
"""Root pytest configuration for the orchestrator repo.
|
|
|
|
The ``agent-team/`` subproject ships its own ``tests/`` package with its own
|
|
``conftest.py`` and path bootstrap. Because both that directory and the repo's
|
|
top-level ``tests/`` are named ``tests`` (each with an ``__init__.py``), a single
|
|
repo-root ``pytest --collect-only`` maps both to the same ``tests`` package and
|
|
fails with ``ImportPathMismatchError``. The agent-team suite is therefore
|
|
collected/run by its OWN CI job (``cd agent-team && pytest``), and excluded from
|
|
the root collection here.
|
|
"""
|
|
|
|
collect_ignore_glob = ["agent-team", "agent-team/*"]
|