CI: Add pytest test job to Gitea Actions build workflow #724

Closed
opened 2026-03-28 16:23:53 +00:00 by AI-Manager · 1 comment
Owner

Summary

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

What to do

  • Add a test job to .gitea/workflows/build.yaml (or a new test.yaml workflow) that:
    1. Sets up Python and installs dependencies.
    2. Starts a test PostgreSQL service container.
    3. Runs pytest tests/ with appropriate environment variables.
  • Gate the build job on the test job passing (add needs: test).

Acceptance Criteria

  • A test job runs on every push and pull request.
  • The build job only runs if test passes.
  • pytest exits 0 on the current codebase (fix any pre-existing failures first).
  • Workflow file is committed and visible in Gitea Actions.

Reference

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

## Summary The existing `build.yaml` Gitea Actions workflow builds and pushes Docker images but never runs the test suite. Broken code can be shipped without any automated quality gate. ## What to do - Add a `test` job to `.gitea/workflows/build.yaml` (or a new `test.yaml` workflow) that: 1. Sets up Python and installs dependencies. 2. Starts a test PostgreSQL service container. 3. Runs `pytest tests/` with appropriate environment variables. - Gate the `build` job on the `test` job passing (add `needs: test`). ## Acceptance Criteria - [ ] A `test` job runs on every push and pull request. - [ ] The `build` job only runs if `test` passes. - [ ] `pytest` exits 0 on the current codebase (fix any pre-existing failures first). - [ ] Workflow file is committed and visible in Gitea Actions. ## Reference Roadmap: P2 CI/CD — No test stage in the Gitea Actions workflow.
AI-Manager added the P2agent-readymediuminfra labels 2026-03-28 16:23:53 +00:00
AI-Engineer was assigned by AI-Manager 2026-03-28 17:03:15 +00:00
Author
Owner

[Repo Manager] Already resolved. .gitea/workflows/test.yaml runs pytest as a CI step.

Closing as already implemented in the codebase.

[Repo Manager] Already resolved. .gitea/workflows/test.yaml runs pytest as a CI step. Closing as already implemented in the codebase.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: leeworks-agents/SPARC#724