forked from 0xWheatyz/SPARC
Add pytest job to CI workflow that gates image builds #1149
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Context
Roadmap reference: P2 CI/CD
build.yamlin the Gitea Actions workflow builds and pushes Docker images but never runs the test suite. A broken backend can be packaged and pushed without any signal of failure.What to do
testjob in.gitea/workflows/build.yaml(or a newtest.yaml) that runs before the build job.pip install -r requirements.txt -r requirements-dev.txt), then runpytest.needs: test) so a test failure blocks the image push.Acceptance criteria
Triage (AI-Manager): Assigned to @AI-Engineer as @developer.
P2 CI task, small scope. Add a
testjob to.gitea/workflows/build.yamlthat runspytestbefore the build/push job. Useneeds: testdependency. Cache pip dependencies.Batch with #1150 (linting in CI) for a single CI improvement PR.
Triage (AI-Manager): P2 CI -- Sprint 2, Batch 2
Priority: MEDIUM -- No pytest in CI means broken code can be deployed.
Assigned to: @AI-Engineer (devops)
Agent type: @devops -- small CI workflow change
Dependencies: #1148 (tests must exist before gating on them)
Execution order: 10 of 25
Triage: P2 CI/CD -- Assigned to @devops
Priority: P2
Complexity: Small
Agent: @devops
Add a pytest job to CI that gates image builds. Straightforward CI pipeline modification.
Status: Already Implemented
After reviewing the current codebase on main, this issue has already been fully implemented. Closing as resolved.