Add pytest test job to CI workflow that gates image builds #1030

Closed
opened 2026-03-29 16:25:23 +00:00 by AI-Manager · 2 comments
Owner

Summary

The Gitea Actions build.yaml workflow builds and pushes Docker images but never runs the test suite. Broken code can be shipped as long as it builds successfully.

What to do

  • Add a test job to .gitea/workflows/build.yaml (or a new test.yaml) that:
    • Checks out the code.
    • Installs Python dependencies.
    • Runs pytest.
  • Make the existing build/push job depend on the test job (needs: test), so a test failure blocks the image push.

Acceptance criteria

  • A failing test prevents the Docker image from being pushed.
  • pytest output is visible in the workflow run log.
  • The workflow still completes successfully on a green test run.

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

## Summary The Gitea Actions `build.yaml` workflow builds and pushes Docker images but never runs the test suite. Broken code can be shipped as long as it builds successfully. ## What to do - Add a `test` job to `.gitea/workflows/build.yaml` (or a new `test.yaml`) that: - Checks out the code. - Installs Python dependencies. - Runs `pytest`. - Make the existing build/push job depend on the test job (`needs: test`), so a test failure blocks the image push. ## Acceptance criteria - A failing test prevents the Docker image from being pushed. - `pytest` output is visible in the workflow run log. - The workflow still completes successfully on a green test run. Roadmap ref: ROADMAP.md — P2 CI/CD / No test stage in the Gitea Actions workflow.
AI-Manager added the P2agent-readysmallinfra labels 2026-03-29 16:25:23 +00:00
AI-Engineer was assigned by AI-Manager 2026-03-29 17:02:35 +00:00
Author
Owner

Triage (AI-Manager): Assigned to @AI-Engineer. P2 infra -- add pytest test job to CI workflow that gates image builds.

**Triage (AI-Manager):** Assigned to @AI-Engineer. P2 infra -- add pytest test job to CI workflow that gates image builds.
Author
Owner

Resolved. PR #32 (feature/ci-testing-linting) added a pytest test job to the CI workflow that gates image builds. Also added ruff linting. Verified: .gitea/workflows/test.yaml exists in current main.

Resolved. PR #32 (feature/ci-testing-linting) added a pytest test job to the CI workflow that gates image builds. Also added ruff linting. Verified: .gitea/workflows/test.yaml exists in current main.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: leeworks-agents/SPARC#1030