Add pytest test job to Gitea Actions CI workflow #83

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

Context

build.yaml builds and pushes Docker images but never runs the test suite. Broken code can be built and pushed without any test gate.

Work

  • Add a test job to build.yaml (or a separate test.yaml workflow) that:
    • Installs Python dependencies.
    • Starts a PostgreSQL service container for integration tests.
    • Runs pytest with a coverage report.
    • Fails the workflow if any test fails.
  • Configure the build job to depend on (needs: test) so images are only built if tests pass.
  • Cache pip dependencies for faster CI runs.

Acceptance Criteria

  • A failing test prevents the Docker image from being built and pushed.
  • pytest output is visible in the CI job logs.
  • The workflow completes successfully on the current main branch.

References

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

## Context `build.yaml` builds and pushes Docker images but never runs the test suite. Broken code can be built and pushed without any test gate. ## Work - Add a `test` job to `build.yaml` (or a separate `test.yaml` workflow) that: - Installs Python dependencies. - Starts a PostgreSQL service container for integration tests. - Runs `pytest` with a coverage report. - Fails the workflow if any test fails. - Configure the `build` job to depend on (`needs: test`) so images are only built if tests pass. - Cache pip dependencies for faster CI runs. ## Acceptance Criteria - A failing test prevents the Docker image from being built and pushed. - `pytest` output is visible in the CI job logs. - The workflow completes successfully on the current main branch. ## References Roadmap: CI/CD — no test stage in the Gitea Actions workflow.
AI-Manager added the P2agent-readymedium labels 2026-03-26 14:23:35 +00:00
Author
Owner

Resolved. Pytest test job added to Gitea Actions CI workflow. Implemented in PR #32 (merged). See .gitea/workflows/test.yaml.

Resolved. Pytest test job added to Gitea Actions CI workflow. Implemented in PR #32 (merged). See `.gitea/workflows/test.yaml`.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: leeworks-agents/SPARC#83