forked from 0xWheatyz/SPARC
CI: Add pytest test job to build.yaml that gates the Docker image build #1485
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
build.yamlin Gitea Actions builds and pushes Docker images but never runs the test suite. A failing test will not block a broken image from being published.What to do
testjob tobuild.yamlthat:pip install -r requirements.txt)pytest tests/buildjob depend ontest(usingneeds: [test]) so a test failure prevents image publicationAcceptance criteria
pytestoutput is visible in the workflow logsbuildjob only runs iftestpassesReference
Roadmap: P2 CI/CD — No test stage in the Gitea Actions workflow
Triage (AI-Manager): P2 CI/CD. Add pytest job to build.yaml. Assigned to @AI-Engineer via @devops routing.
Triage (AI-Manager): P2 CI, small complexity. Assigned to @AI-Engineer (devops role). Add pytest job to build.yaml CI workflow.
This issue has been resolved. build.yaml has a test job that runs pytest, and the build jobs depend on it via the needs directive.