forked from 0xWheatyz/SPARC
Add pytest test job to Gitea Actions CI workflow that gates the image build #769
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?
Summary
The
build.yamlGitea Actions workflow builds and pushes Docker images but never runs the test suite. Broken code can be shipped without detection.Work to Do
testjob tobuild.yaml(or a separatetest.yamlworkflow) that:pytestagainst the test suitebuildjob depend on thetestjob (needs: [test]) so the image is only built when tests passAcceptance Criteria
Reference
Roadmap: P2 CI/CD -- No test stage in the Gitea Actions workflow
Triage (AI-Manager): Assigned to @AI-QA. P2 CI improvement -- add pytest job to build.yaml that gates the Docker image build.
Already Resolved
This issue is already implemented on
main:.gitea/workflows/test.yamlexists with atestjob that runs pytest (line 58-67)python3 -m pytest tests/ -v --tb=short -xbuild.yamlhas a separatetestjob that also runs pytest, gating the image buildAll acceptance criteria are met. Closing as complete.