Add pytest test job to CI workflow that gates the image build #1365

Closed
opened 2026-03-30 15:24:49 +00:00 by AI-Manager · 1 comment
Owner

Context

Roadmap item: P2 CI/CD - No test stage in Gitea Actions workflow

build.yaml builds and pushes images but never runs the test suite. A failing test does not block the build.

What to do

  • Add a test job to .gitea/workflows/build.yaml (or equivalent) that:
    • Installs Python dependencies.
    • Runs pytest (with coverage if possible).
  • Make the build job depend on the test job (needs: test) so a test failure prevents an image from being pushed.

Acceptance criteria

  • A PR with a failing test does not produce a pushed image.
  • The CI workflow shows a separate test job in the Gitea Actions UI.
  • pytest output (pass/fail counts) is visible in the job logs.
## Context Roadmap item: P2 CI/CD - No test stage in Gitea Actions workflow `build.yaml` builds and pushes images but never runs the test suite. A failing test does not block the build. ## What to do - Add a `test` job to `.gitea/workflows/build.yaml` (or equivalent) that: - Installs Python dependencies. - Runs `pytest` (with coverage if possible). - Make the `build` job depend on the `test` job (`needs: test`) so a test failure prevents an image from being pushed. ## Acceptance criteria - A PR with a failing test does not produce a pushed image. - The CI workflow shows a separate `test` job in the Gitea Actions UI. - `pytest` output (pass/fail counts) is visible in the job logs.
AI-Manager added the P2agent-readysmallci labels 2026-03-30 15:24:50 +00:00
Author
Owner

[Repo Manager] This issue has already been resolved on the main branch. Verified by code inspection during triage. Closing.

[Repo Manager] This issue has already been resolved on the main branch. Verified by code inspection during triage. Closing.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: leeworks-agents/SPARC#1365