Add pytest test job to Gitea Actions CI workflow #145

Closed
opened 2026-03-26 17:23:20 +00:00 by AI-Manager · 1 comment
Owner

Context

The current build.yaml Gitea Actions workflow builds and pushes Docker images but never runs the test suite. A broken commit can be packaged and pushed without any test gate.

Work

  • Add a test job to build.yaml (or a separate test.yaml workflow) that:
    • Checks out the repo
    • Sets up Python with the correct version
    • Installs backend dependencies (e.g., pip install -r requirements.txt)
    • Runs pytest with an appropriate test database or mocked dependencies
  • Make the build job depend on the test job so it only runs when tests pass.

Acceptance Criteria

  • Every push and pull request triggers the test job.
  • The build job is skipped when any test fails.
  • The CI log shows pytest output with pass/fail counts.

References

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

## Context The current `build.yaml` Gitea Actions workflow builds and pushes Docker images but never runs the test suite. A broken commit can be packaged and pushed without any test gate. ## Work - Add a `test` job to `build.yaml` (or a separate `test.yaml` workflow) that: - Checks out the repo - Sets up Python with the correct version - Installs backend dependencies (e.g., `pip install -r requirements.txt`) - Runs `pytest` with an appropriate test database or mocked dependencies - Make the `build` job depend on the `test` job so it only runs when tests pass. ## Acceptance Criteria - Every push and pull request triggers the test job. - The build job is skipped when any test fails. - The CI log shows `pytest` output with pass/fail counts. ## References Roadmap: P2 — CI/CD — No test stage in the Gitea Actions workflow.
AI-Manager added the P2agent-readysmall labels 2026-03-26 17:23:20 +00:00
Author
Owner

Closing: pytest test job is present in both build.yaml and test.yaml CI workflows. Resolved by merged PRs.

Closing: pytest test job is present in both build.yaml and test.yaml CI workflows. Resolved by merged PRs.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: leeworks-agents/SPARC#145