forked from 0xWheatyz/SPARC
CI: add pytest test stage to Gitea Actions workflow that gates the image build #368
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 but never runspytest. A broken test can be shipped as a built image without any CI signal.Work
testjob tobuild.yaml(or a separatetest.yamlworkflow) that:pytest tests/with an appropriate exit code.buildjob depend on thetestjob (i.e., only build if tests pass).Acceptance Criteria
pytestoutput is visible in the CI logs.Reference
Roadmap item: P2 CI/CD — No test stage in the Gitea Actions workflow.
[Triage] Already implemented in main. Both .gitea/workflows/test.yaml and build.yaml include pytest test stages that gate the build. Closing as resolved.