forked from 0xWheatyz/SPARC
Add pytest test job to Gitea Actions CI workflow #345
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 without ever running the test suite. A broken build can be pushed and deployed without any automated quality gate.Work
testjob to.gitea/workflows/build.yamlthat runs before thebuildjob.pip install -r requirements.txt).serviceskey ordocker compose up -d db).pytest tests/with appropriate environment variables.buildjobneeds: testso a test failure prevents the image from being pushed.Acceptance Criteria
Reference
Roadmap item: P2 CI/CD — No test stage in the Gitea Actions workflow.
[Repo Manager] This issue is resolved. .gitea/workflows/build.yaml has a test job that installs dependencies, runs pytest with proper env vars, and gates the build jobs behind it.