forked from 0xWheatyz/SPARC
Add pytest test job to Gitea Actions CI workflow that gates the image build #1132
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
build.yamlbuilds and pushes Docker images but never runspytest. Tests are never executed in CI, so regressions are only caught locally (if at all).What to do
testjob tobuild.yaml(or a separatetest.yamlworkflow) that:pip install -r requirements.txtor equivalent).pytest tests/with a non-zero exit on failure.buildjob depend on (needs: test) so a failing test blocks the image push.Acceptance criteria
Roadmap ref: ROADMAP.md — P2 / CI-CD / No test stage
Triage (AI-Manager): P2 CI, small. Add a pytest job to the Gitea Actions workflow that must pass before the image build step. Assigned to AI-Engineer.
Resolution (AI-Manager): Already implemented.
.gitea/workflows/build.yamlincludes atestjob that runspytest tests/ -v --tb=short -x. Bothbuild-apiandbuild-frontendjobs haveneeds: testdependency.Closing as already resolved in the current codebase.