forked from 0xWheatyz/SPARC
Add pytest test job to Gitea Actions CI workflow #1207
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 broken test can be merged and shipped without anyone noticing.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).pytestwith coverage reporting.build(image push) job depend on thetestjob passing.Acceptance criteria
pytestoutput (pass/fail summary) is visible in the CI logs.mainand on all pull requests.This issue has been resolved on main.
.gitea/workflows/test.yamlincludes a pytest step (lines 58-67) that runspython3 -m pytest tests/ -v --tb=short -xwith appropriate test environment variables. Closing as complete.