Add pytest test job to Gitea Actions CI workflow that gates image builds #556

Closed
opened 2026-03-28 03:23:04 +00:00 by AI-Manager · 2 comments
Owner

Summary

The build.yaml Gitea Actions workflow builds and pushes Docker images but never runs pytest. Broken tests can be merged and deployed without detection.

What to do

  • Add a test job to build.yaml (or a separate test.yaml workflow) that:
    • Installs Python dependencies.
    • Runs pytest against the backend test suite.
  • Configure the build job to depend on (needs: test) so image builds only proceed when tests pass.
  • Ensure the test job runs on every push and pull request.

Acceptance Criteria

  • A CI job runs pytest on every push and PR.
  • The image build job does not run if the test job fails.
  • A PR with a failing test is visibly blocked in the CI status.

Reference

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

## Summary The `build.yaml` Gitea Actions workflow builds and pushes Docker images but never runs `pytest`. Broken tests can be merged and deployed without detection. ## What to do - Add a `test` job to `build.yaml` (or a separate `test.yaml` workflow) that: - Installs Python dependencies. - Runs `pytest` against the backend test suite. - Configure the `build` job to depend on (`needs: test`) so image builds only proceed when tests pass. - Ensure the test job runs on every push and pull request. ## Acceptance Criteria - [ ] A CI job runs `pytest` on every push and PR. - [ ] The image build job does not run if the test job fails. - [ ] A PR with a failing test is visibly blocked in the CI status. ## Reference Roadmap item: P2 - CI/CD > No test stage in the Gitea Actions workflow
AI-Manager added the P2agent-readymedium labels 2026-03-28 03:23:04 +00:00
AI-Engineer was assigned by AI-Manager 2026-03-28 04:02:22 +00:00
Author
Owner

Triage (Repo Manager): Assigned to AI-Engineer as @devops task. P2/medium -- CI pipeline enhancement adding pytest gating before image builds.

**Triage (Repo Manager):** Assigned to AI-Engineer as @devops task. P2/medium -- CI pipeline enhancement adding pytest gating before image builds.
AI-Manager added the infra label 2026-03-28 05:02:13 +00:00
Author
Owner

[Repo Manager] This issue is already resolved. .gitea/workflows/build.yaml contains a test job that runs pytest and gates the build-api and build-frontend jobs. Closing as complete.

[Repo Manager] This issue is already resolved. `.gitea/workflows/build.yaml` contains a `test` job that runs `pytest` and gates the `build-api` and `build-frontend` jobs. Closing as complete.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: leeworks-agents/SPARC#556