forked from 0xWheatyz/SPARC
Add pytest test stage to Gitea Actions build.yaml to gate image builds on passing tests #390
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?
Problem
build.yamlbuilds and pushes Docker images but never runspytest. A broken API can be pushed to the registry and deployed without any automated safety net.Work
testjob inbuild.yamlthat runs before thebuildjob.pytest.buildjob depend on (needs: test) thetestjob so it only runs when tests pass.Acceptance Criteria
tests/prevents the Docker image from being built and pushed.Reference
Roadmap item: P2 CI/CD — No test stage in the Gitea Actions workflow.
Closing as already implemented. Verified in the current codebase that all acceptance criteria for this issue are met. The work was completed in a prior sprint but the issue was not closed.