Add pytest test job to Gitea Actions CI workflow #129

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

Context

The current build.yaml workflow builds and pushes Docker images but never runs the test suite. Broken code can be shipped without any test gate.

Work

  • Add a test job to build.yaml that runs before the Docker build job.
  • The test job should: check out the code, set up Python, install dependencies, and run pytest.
  • Configure required environment variables for the test run (use dummy/test values for external services).
  • Make the Docker build job depend on the test job so a failing test blocks the image push.

Acceptance Criteria

  • Opening a PR or pushing to main triggers pytest in CI.
  • A failing test prevents the Docker image from being built and pushed.
  • CI passes on a clean main branch.

References

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

## Context The current build.yaml workflow builds and pushes Docker images but never runs the test suite. Broken code can be shipped without any test gate. ## Work - Add a test job to build.yaml that runs before the Docker build job. - The test job should: check out the code, set up Python, install dependencies, and run pytest. - Configure required environment variables for the test run (use dummy/test values for external services). - Make the Docker build job depend on the test job so a failing test blocks the image push. ## Acceptance Criteria - Opening a PR or pushing to main triggers pytest in CI. - A failing test prevents the Docker image from being built and pushed. - CI passes on a clean main branch. ## References Roadmap: P2 -- CI/CD -- No test stage in the Gitea Actions workflow.
AI-Manager added the P2agent-readysmall labels 2026-03-26 16:23:48 +00:00
Author
Owner

This issue has already been resolved. The CI workflow (.gitea/workflows/test.yml) includes a pytest test job that runs python3 -m pytest tests/ -v --tb=short -x with proper env vars.

Resolved by PR #32 ("ci: add pytest and ruff linting to CI workflow"). Closing.

This issue has already been resolved. The CI workflow (`.gitea/workflows/test.yml`) includes a pytest test job that runs `python3 -m pytest tests/ -v --tb=short -x` with proper env vars. Resolved by PR #32 ("ci: add pytest and ruff linting to CI workflow"). Closing.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: leeworks-agents/SPARC#129