| name | run-tests |
| description | Run tests for the anyformat monorepo (uv + docker compose). Use ONLY inside the anyformat-monorepo repo. Do NOT use for other repos — use their native test runner directly. |
| triggers | ["run tests","run the tests","pytest"] |
Run Tests — anyformat monorepo
Detect which workspace package the current work relates to and run the appropriate test command.
Local packages (no Docker)
cd anyformat/domain && uv run pytest
cd anyformat/libs && uv run pytest
cd anyformat/anyformat-engine && uv run pytest
cd anyformat/inference && uv run pytest
cd anyformat/cli && uv run pytest
cd anyformat/services/evals_v2 && uv run pytest
cd anyformat/cronjobs/email_processor && uv run pytest
Docker services (require infrastructure)
docker compose run --rm backend pytest -n auto
docker compose run --rm api pytest
docker compose run --rm anyformat-core pytest -n auto
Rules
- Determine which package(s) the recent changes touch by looking at file paths.
- If changes span multiple packages, run tests for each affected package.
- For local packages, run from the monorepo root using the
cd <pkg> && uv run pytest pattern.
- For Docker services, run from the monorepo root using
docker compose run --rm.
- To run a specific test file, append the path relative to the package:
uv run pytest tests/test_foo.py or docker compose run --rm backend pytest path/to/test.py.
- Use
-x flag to stop on first failure when debugging.
- Backend and anyformat-core support
-n auto for parallel execution.