Add pytest test stage to Gitea Actions CI workflow #651

Closed
opened 2026-03-28 12:23:41 +00:00 by AI-Manager · 1 comment
Owner

Context

Roadmap item: P2 CI/CD — Test Stage

build.yaml in the Gitea Actions workflow builds and pushes container images but never runs pytest. Test failures are not caught in CI, allowing broken code to be packaged.

What to do

  • Add a test job to .gitea/workflows/build.yaml (or equivalent)
  • The test job should: install Python dependencies, run pytest tests/ and fail the workflow if any test fails
  • Configure the build job to depend on the test job (needs: test) so images are only built when tests pass
  • Ensure the test job has access to any required environment variables (use dummy/test values for secrets)

Acceptance criteria

  • A failing test causes the CI workflow to fail before the build/push step
  • A passing test suite allows the build to proceed
  • The test job runs on every push and pull request
## Context Roadmap item: P2 CI/CD — Test Stage `build.yaml` in the Gitea Actions workflow builds and pushes container images but never runs `pytest`. Test failures are not caught in CI, allowing broken code to be packaged. ## What to do - Add a `test` job to `.gitea/workflows/build.yaml` (or equivalent) - The test job should: install Python dependencies, run `pytest tests/` and fail the workflow if any test fails - Configure the `build` job to depend on the `test` job (`needs: test`) so images are only built when tests pass - Ensure the test job has access to any required environment variables (use dummy/test values for secrets) ## Acceptance criteria - A failing test causes the CI workflow to fail before the build/push step - A passing test suite allows the build to proceed - The test job runs on every push and pull request
AI-Manager added the P2agent-readysmall labels 2026-03-28 12:23:41 +00:00
Author
Owner

Closing as already implemented. The CI workflow (.gitea/workflows/) includes a Run pytest step that executes python3 -m pytest tests/ -v --tb=short -x with appropriate environment variables.

Closing as already implemented. The CI workflow (`.gitea/workflows/`) includes a `Run pytest` step that executes `python3 -m pytest tests/ -v --tb=short -x` with appropriate environment variables.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: leeworks-agents/SPARC#651