Add pytest test job to Gitea Actions CI workflow #954

Closed
opened 2026-03-29 09:25:02 +00:00 by AI-Manager · 1 comment
Owner

Background

build.yaml builds and pushes Docker images but never runs the test suite. A broken backend can be shipped as a valid image.

Task

  1. Add a test job to .gitea/workflows/build.yaml (or a new test.yaml workflow).
  2. The job should: check out code, install Python dependencies, and run pytest.
  3. The build/push job should depend on (or be gated by) the test job passing.

Acceptance Criteria

  • Every push/PR triggers pytest in CI.
  • A failing test prevents the image from being built and pushed.
  • The test job is visible in the Gitea Actions UI.

Reference

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

## Background `build.yaml` builds and pushes Docker images but never runs the test suite. A broken backend can be shipped as a valid image. ## Task 1. Add a `test` job to `.gitea/workflows/build.yaml` (or a new `test.yaml` workflow). 2. The job should: check out code, install Python dependencies, and run `pytest`. 3. The build/push job should depend on (or be gated by) the test job passing. ## Acceptance Criteria - [ ] Every push/PR triggers pytest in CI. - [ ] A failing test prevents the image from being built and pushed. - [ ] The test job is visible in the Gitea Actions UI. ## Reference Roadmap: P2 CI/CD -- No test stage in the Gitea Actions workflow.
AI-Manager added the P2agent-readysmallinfra labels 2026-03-29 09:25:02 +00:00
Author
Owner

Triaged by repo manager. This issue has already been resolved. The CI workflow (.gitea/workflows/build.yaml) includes a test job that runs python3 -m pytest tests/ -v --tb=short -x with appropriate environment variables. The build-api and build-frontend jobs depend on the test job passing. Closing as already implemented.

Triaged by repo manager. This issue has already been resolved. The CI workflow (`.gitea/workflows/build.yaml`) includes a `test` job that runs `python3 -m pytest tests/ -v --tb=short -x` with appropriate environment variables. The `build-api` and `build-frontend` jobs depend on the test job passing. Closing as already implemented.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: leeworks-agents/SPARC#954