forked from 0xWheatyz/SPARC
Add pytest test job to Gitea Actions CI workflow to gate image builds on passing tests #51
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
The current
build.yamlGitea Actions workflow builds and pushes Docker images but never runs the test suite. A broken backend can be built and deployed without any automated quality gate.Task
testjob to.gitea/workflows/build.yaml(or a newtest.yamlworkflow file) that:pip install -r requirements.txt -r requirements-dev.txtor similar).pytestwith appropriate flags (e.g.,--tb=short -q).build(image push) job toneeds: [test]so it only runs when tests pass.Acceptance Criteria
actdry-run (or equivalent local check).References
Roadmap: P2 -- CI/CD -- No test stage in the Gitea Actions workflow.
Closing: Already implemented in PR #32 (ci: add pytest and ruff linting to CI workflow). The build.yaml workflow includes a pytest test job that gates image builds.