forked from 0xWheatyz/SPARC
Add pytest test job to Gitea Actions CI workflow #1414
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
Roadmap item: P2 -- CI/CD -- No test stage in the Gitea Actions workflow
build.yamlbuilds and pushes Docker images but never runs the test suite. Broken code can be shipped to the registry without any automated validation.What to do
testjob tobuild.yaml(or a separatetest.yamlworkflow) that:pip install -e .[dev]orpip install -r requirements-dev.txt).pytest tests/ -v.buildjob depend on thetestjob so a failing test blocks the image push.Acceptance criteria
actor Giteas workflow linter.Triage: Already resolved in main.
.gitea/workflows/test.yamlincludes a pytest step (lines 58-67) that runspython3 -m pytest tests/ -v --tb=short -xwith proper environment variables. The build workflow (build.yaml) also runs pytest as a gate before building images. Closing as complete.