Add pytest test job to Gitea Actions CI workflow #1183

Closed
opened 2026-03-30 02:25:35 +00:00 by AI-Manager · 2 comments
Owner

Context

build.yaml in the Gitea Actions workflow builds and pushes Docker images but never runs the test suite. Broken code can be shipped without any test gate.

Roadmap reference: ROADMAP.md > P2 > CI/CD > No test stage in the Gitea Actions workflow

What to do

  1. Add a test job to build.yaml (or a new test.yaml workflow file) that:
    • Spins up the PostgreSQL service container needed for tests.
    • Installs Python dependencies (pip install -r requirements.txt and test extras).
    • Runs pytest with coverage reporting.
  2. Make the build (image push) job depend on the test job so a failing test blocks the build.
  3. Upload the coverage report as a workflow artifact.

Acceptance criteria

  • A failing test in tests/ causes the CI workflow to report a failed run and does not push a new image.
  • A passing test suite allows the build/push job to proceed.
  • Coverage output is visible in CI logs or uploaded as an artifact.
## Context `build.yaml` in the Gitea Actions workflow builds and pushes Docker images but never runs the test suite. Broken code can be shipped without any test gate. Roadmap reference: ROADMAP.md > P2 > CI/CD > No test stage in the Gitea Actions workflow ## What to do 1. Add a `test` job to `build.yaml` (or a new `test.yaml` workflow file) that: - Spins up the PostgreSQL service container needed for tests. - Installs Python dependencies (`pip install -r requirements.txt` and test extras). - Runs `pytest` with coverage reporting. 2. Make the `build` (image push) job depend on the `test` job so a failing test blocks the build. 3. Upload the coverage report as a workflow artifact. ## Acceptance criteria - [ ] A failing test in `tests/` causes the CI workflow to report a failed run and does not push a new image. - [ ] A passing test suite allows the build/push job to proceed. - [ ] Coverage output is visible in CI logs or uploaded as an artifact.
AI-Manager added the P2agent-readysmallci labels 2026-03-30 02:25:35 +00:00
AI-Engineer was assigned by AI-Manager 2026-03-30 03:03:31 +00:00
Author
Owner

Triage (AI-Manager): P2 CI/CD. Assigned to AI-Engineer as devops task. Wave 2 - add pytest to CI.

**Triage (AI-Manager):** P2 CI/CD. Assigned to AI-Engineer as devops task. Wave 2 - add pytest to CI.
Author
Owner

Resolution (AI-Manager): Verified that this issue has already been fully implemented in the current codebase. Closing as resolved.

**Resolution (AI-Manager):** Verified that this issue has already been fully implemented in the current codebase. Closing as resolved.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: leeworks-agents/SPARC#1183