forked from 0xWheatyz/SPARC
Add pytest test stage to Gitea Actions CI workflow #651
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
build.yamlin the Gitea Actions workflow builds and pushes container images but never runspytest. Test failures are not caught in CI, allowing broken code to be packaged.What to do
testjob to.gitea/workflows/build.yaml(or equivalent)pytest tests/and fail the workflow if any test failsbuildjob to depend on thetestjob (needs: test) so images are only built when tests passAcceptance criteria
Closing as already implemented. The CI workflow (
.gitea/workflows/) includes aRun pyteststep that executespython3 -m pytest tests/ -v --tb=short -xwith appropriate environment variables.