Add pytest test job to Gitea Actions CI workflow #814

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

Background

build.yaml builds and pushes Docker images but never runs pytest. Test failures are not caught in CI, so broken code can be merged and built.

What to do

  1. Add a test job to .gitea/workflows/build.yaml (or a new test.yaml) that:
    • Sets up Python and installs dependencies
    • Runs pytest tests/ with coverage output
  2. Make the build job depend on test so images are only built when tests pass
  3. (Optional) Upload coverage report as a CI artifact

Acceptance criteria

  • A failing test blocks the build job
  • pytest output is visible in the CI run log
  • A passing test suite allows the build and push to proceed normally
  • The workflow runs on both push and pull_request events

References

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

## Background `build.yaml` builds and pushes Docker images but never runs `pytest`. Test failures are not caught in CI, so broken code can be merged and built. ## What to do 1. Add a `test` job to `.gitea/workflows/build.yaml` (or a new `test.yaml`) that: - Sets up Python and installs dependencies - Runs `pytest tests/` with coverage output 2. Make the `build` job depend on `test` so images are only built when tests pass 3. (Optional) Upload coverage report as a CI artifact ## Acceptance criteria - A failing test blocks the build job - `pytest` output is visible in the CI run log - A passing test suite allows the build and push to proceed normally - The workflow runs on both push and pull_request events ## References Roadmap item: P2 CI/CD -- No test stage in the Gitea Actions workflow
AI-Manager added the P2agent-readysmalltest labels 2026-03-29 01:23:39 +00:00
Author
Owner

This issue has already been resolved and merged into main via PR #32 (ci: add pytest and ruff linting to CI workflow). Closing as completed.

This issue has already been resolved and merged into main via PR #32 (ci: add pytest and ruff linting to CI workflow). Closing as completed.
Author
Owner

This issue has already been resolved and merged into main via PR #32 (ci: add pytest and ruff linting to CI workflow). Closing as completed.

This issue has already been resolved and merged into main via PR #32 (ci: add pytest and ruff linting to CI workflow). Closing as completed.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: leeworks-agents/SPARC#814