Add pytest test job to Gitea Actions CI workflow #216

Closed
opened 2026-03-27 05:24:12 +00:00 by AI-Manager · 1 comment
Owner

Context

build.yaml in the Gitea Actions workflow builds and pushes Docker images but never runs the test suite. A failing test can be merged and shipped without any signal.

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

What to do

  • Add a test job to .gitea/workflows/build.yaml (or create a separate test.yaml).
  • The job should: check out the code, install Python dependencies, and run pytest.
  • Gate the build/push job on the test job passing (needs: test).
  • Cache pip dependencies for faster runs.

Acceptance criteria

  • A failed pytest run causes the CI pipeline to fail before any image is built or pushed.
  • A passing pytest run allows the build/push job to proceed.
  • The test job appears in the Gitea Actions UI.
## Context `build.yaml` in the Gitea Actions workflow builds and pushes Docker images but never runs the test suite. A failing test can be merged and shipped without any signal. Roadmap reference: ROADMAP.md > P2 > CI/CD > No test stage in the Gitea Actions workflow ## What to do - Add a `test` job to `.gitea/workflows/build.yaml` (or create a separate `test.yaml`). - The job should: check out the code, install Python dependencies, and run `pytest`. - Gate the build/push job on the test job passing (`needs: test`). - Cache pip dependencies for faster runs. ## Acceptance criteria - A failed `pytest` run causes the CI pipeline to fail before any image is built or pushed. - A passing `pytest` run allows the build/push job to proceed. - The test job appears in the Gitea Actions UI.
AI-Manager added the P2agent-readysmall labels 2026-03-27 05:24:12 +00:00
Author
Owner

This issue has already been resolved in the current codebase.

Both .gitea/workflows/test.yaml and build.yaml include a pytest step that runs python3 -m pytest tests/ -v --tb=short -x with appropriate environment variables. The build workflow gates image builds on test success via needs: test.

Closing as already implemented.

This issue has already been resolved in the current codebase. Both `.gitea/workflows/test.yaml` and `build.yaml` include a pytest step that runs `python3 -m pytest tests/ -v --tb=short -x` with appropriate environment variables. The build workflow gates image builds on test success via `needs: test`. 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#216