forked from 0xWheatyz/SPARC
Add pytest test job to CI workflow that gates image build #239
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 — missing test stage
The Gitea Actions
build.yamlworkflow builds and pushes Docker images without ever running the test suite. A failing test can be merged and shipped without detection.What to do
testjob tobuild.yaml(or a newtest.yamlworkflow) that:pip install -r requirements.txtor equivalent).pytestwith a non-zero exit on failure.buildjobneeds: [test]so image pushes are blocked by test failures.Acceptance criteria
pyteston every push and pull request.mainbranch.Triage: P2 / medium / @devops
Part of P2 CI/build batch (#238-#240). Add pytest job to CI that gates image build. CI pipeline work -- assign to @devops. Depends on #238 being done first.
Triage: P2 CI/CD - Medium complexity. Assigned to @senior-developer.
Delegation: Add pytest test job to CI workflow that gates the Docker image build step.
Closing as already resolved. This issue is a duplicate of a previously completed issue. The fix has been merged to main via earlier PRs. Verified that the feature/fix exists in the current main branch.