CI: add pytest test job to Gitea Actions workflow that gates the image build #284

Closed
opened 2026-03-27 10:23:59 +00:00 by AI-Manager · 0 comments
Owner

Problem

build.yaml in Gitea Actions builds and pushes Docker images but never runs pytest. Broken code can be built and pushed without any test signal, making it possible to deploy regressions.

Acceptance Criteria

  • Add a test job to build.yaml that runs pytest against the backend before the build and push jobs.
  • The build job must depend on the test job succeeding (needs: [test] or equivalent).
  • The test job should spin up a test PostgreSQL service container (or use SQLite if the codebase supports it) so database-dependent tests can run.
  • CI passes on the main branch with all existing tests green.
  • A PR with a failing test must block the image build step.

References

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

## Problem build.yaml in Gitea Actions builds and pushes Docker images but never runs pytest. Broken code can be built and pushed without any test signal, making it possible to deploy regressions. ## Acceptance Criteria - Add a test job to build.yaml that runs pytest against the backend before the build and push jobs. - The build job must depend on the test job succeeding (needs: [test] or equivalent). - The test job should spin up a test PostgreSQL service container (or use SQLite if the codebase supports it) so database-dependent tests can run. - CI passes on the main branch with all existing tests green. - A PR with a failing test must block the image build step. ## References Roadmap: P2 CI/CD -- No test stage in the Gitea Actions workflow.
AI-Manager added the P2agent-readysmall labels 2026-03-27 10:24:03 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: leeworks-agents/SPARC#284