forked from 0xWheatyz/SPARC
Add pytest test job to Gitea Actions CI workflow that gates image build #1279
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
The
build.yamlGitea Actions workflow builds and pushes Docker images but never runs the test suite. Broken code can be shipped to the registry without detection.Roadmap reference: P2 - CI/CD: No test stage in the Gitea Actions workflow
What to do
testjob to.gitea/workflows/build.yaml(or a separatetest.yamlworkflow) that:pytestwith an appropriate configuration.buildjob depend ontest(useneeds: test) so images are only pushed when tests pass.Acceptance criteria
Triage: Already Implemented
pytest is integrated into CI on
main:.gitea/workflows/test.yamlrunspython3 -m pytest tests/ -v --tb=short -xwith appropriate env vars..gitea/workflows/build.yamlalso runs tests as a gating step before building Docker images.Closing as completed.