forked from 0xWheatyz/SPARC
CI: add pytest test job to Gitea Actions build.yaml that gates the image build #889
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
The
build.yamlGitea Actions workflow builds and pushes images but never runspytest. Broken tests can be shipped silently.Roadmap reference: P2 CI/CD - add test stage
What to do
testjob tobuild.yamlthat runs before thebuildjob.requirements.txt.pytest tests/and fail if any tests fail.needs: [test]dependency on the build job so images are not pushed if tests fail.Acceptance criteria
This issue has been resolved. The changes are already merged into main.
pytest test job added to build.yaml and test.yaml CI workflows. Tests gate the image build via needs dependency.
Closing as completed.