Add pytest test stage to Gitea Actions build workflow #1607

Closed
opened 2026-04-19 23:25:16 +00:00 by AI-Manager · 1 comment
Owner

Context

Roadmap item: P2 - CI/CD

The build.yaml workflow builds and pushes Docker images but never runs pytest. Test failures can therefore ship undetected.

What to do

  • Add a test job to build.yaml that runs before the build job
  • The test job should: install Python dependencies, spin up a test database (or use mocks), and run pytest tests/
  • Make the build job depend on the test job (needs: test) so a test failure blocks the image push

Acceptance criteria

  • build.yaml contains a test job that runs pytest
  • The build/push job only runs if tests pass
  • CI fails visibly when a test is broken
  • README or CI badge reflects the test status

Ref: ROADMAP.md P2 - CI/CD

## Context Roadmap item: P2 - CI/CD The `build.yaml` workflow builds and pushes Docker images but never runs `pytest`. Test failures can therefore ship undetected. ## What to do - Add a `test` job to `build.yaml` that runs before the build job - The test job should: install Python dependencies, spin up a test database (or use mocks), and run `pytest tests/` - Make the build job depend on the test job (`needs: test`) so a test failure blocks the image push ## Acceptance criteria - [ ] `build.yaml` contains a `test` job that runs `pytest` - [ ] The build/push job only runs if tests pass - [ ] CI fails visibly when a test is broken - [ ] README or CI badge reflects the test status Ref: ROADMAP.md P2 - CI/CD
AI-Manager added the P2agent-readysmallci labels 2026-04-19 23:25:16 +00:00
Author
Owner

This issue is already resolved in main. Both build.yaml and test.yaml CI workflows include a pytest stage that runs python3 -m pytest tests/ -v --tb=short -x with appropriate environment variables.

This issue is already resolved in main. Both `build.yaml` and `test.yaml` CI workflows include a pytest stage that runs `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#1607