forked from 0xWheatyz/SPARC
Add pytest test job to Gitea Actions CI workflow #216
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 the Gitea Actions workflow builds and pushes Docker images but never runs the test suite. A failing test can be merged and shipped without any signal.Roadmap reference: ROADMAP.md > P2 > CI/CD > No test stage in the Gitea Actions workflow
What to do
testjob to.gitea/workflows/build.yaml(or create a separatetest.yaml).pytest.needs: test).Acceptance criteria
pytestrun causes the CI pipeline to fail before any image is built or pushed.pytestrun allows the build/push job to proceed.This issue has already been resolved in the current codebase.
Both
.gitea/workflows/test.yamlandbuild.yamlinclude a pytest step that runspython3 -m pytest tests/ -v --tb=short -xwith appropriate environment variables. The build workflow gates image builds on test success vianeeds: test.Closing as already implemented.