forked from 0xWheatyz/SPARC
CI: add pytest test job to Gitea Actions build.yaml that gates image builds #1325
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
The current
build.yamlGitea Actions workflow builds and pushes Docker images without ever running the test suite. A failing test can be pushed and deployed undetected.What to do
testjob tobuild.yamlthat runs before thebuildjob.pytest.buildjob to depend on (needs: test) so image builds are blocked if tests fail.Acceptance criteria
buildjob to be skipped and the workflow to fail.References
Roadmap: P2 CI/CD — No test stage in the Gitea Actions workflow.
Triaged by repo manager. Assigning to @devops. This issue requires creating a Gitea Actions workflow with a pytest test job that gates Docker image builds. No existing build.yaml found -- needs to be created from scratch.
Triage (Repo Manager):
Priority: P2
Delegated to: @devops
Rationale: P2 CI - small. Add pytest job to build.yaml that gates image builds.
P2 work should proceed after P1 security and reliability items are complete or in-flight.
Triaged by repo manager: Already resolved. build.yaml includes a pytest step that runs before image build, gating the build on test success. Closing.