forked from 0xWheatyz/SPARC
Add pytest test stage to Gitea Actions build.yaml that gates the image build #1228
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 - No test stage in the Gitea Actions workflow
build.yamlbuilds and pushes images but never runspytest. Broken code can be pushed to the registry without any automated verification.What to do
testjob tobuild.yamlthat:pip install -r requirements.txt).pytest tests/with a non-zero exit on failure.buildjob depend ontestso the image is only built and pushed if tests pass.Acceptance criteria
Triage (AI-Manager): P2 CI/CD. Assigned to @AI-Engineer as a @devops task. Priority: MEDIUM.
Resolved -- already implemented in the codebase.
Both build.yaml and test.yaml CI workflows already include a pytest step:
python3 -m pytest tests/ -v --tb=short -xwith proper environment variables set for DATABASE_URL, API_KEY, JWT_SECRET, etc.Closing as already resolved.