forked from 0xWheatyz/SPARC
Add pytest test job to Gitea Actions CI workflow #1109
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?
Background
.gitea/workflows/build.yamlbuilds and pushes Docker images but never runs the test suite. A broken commit can ship a new image without any automated signal that tests fail.What to do
testjob tobuild.yamlthat runs before thebuildjob.docker composewith just the db service).pip install -r requirements.txt.pytest tests/ -v --tb=short.buildjob shouldneeds: [test]so it only runs when tests pass.Acceptance criteria
testjob appears inbuild.yaml.Roadmap reference: P2 - CI/CD - No test stage in Gitea Actions
This issue has been verified as already implemented in the current codebase. The acceptance criteria are met based on code review. Closing as completed.