forked from 0xWheatyz/SPARC
Add pytest test job to Gitea Actions CI workflow that gates the image build #1460
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 item: P2 CI/CD - test stage
Problem
build.yamlbuilds and pushes Docker images but never runs the test suite. Broken code can be shipped without any test failure blocking the build.What to do
testjob to.gitea/workflows/build.yamlthat runs before thebuildjob.pip install -r requirements.txt), and runpytest.buildjob depend on thetestjob (needs: test).Acceptance criteria
[Triage] P2 CI (pytest test job). Assigned to @AI-Engineer. Queued for implementation after P1 issues are addressed.
[Verification] All acceptance criteria met. Verified complete.
.gitea/workflows/build.yamlhas atestjob that runspytest tests/ -v --tb=short -x. Bothbuild-apiandbuild-frontendjobs depend ontestvianeeds: test. Closing as implemented.