forked from 0xWheatyz/SPARC
Add pytest test stage to Gitea Actions build workflow #1559
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.yamlbuilds and pushes Docker images but never runs the test suite. A breaking change in the backend can be shipped without any automated 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 equivalent path) that runs before thebuildjob.pip install -r requirements.txtandpip install -r requirements-dev.txtor equivalent).pytestand fail the workflow on any test failure.buildjob on thetestjob passing (needs: test).Acceptance criteria
act --dry-runor Gitea Actions validates without errors).Triage note (2026-04-19): The CI workflow
.gitea/workflows/build.yamlalready has atestjob structure with pytest commented out (lines 50-59). The job currently runs ruff and tsc but the pytest step needs to be uncommented and verified. The test job already gates the build jobs vianeeds: test.Remaining work:
.gitea/workflows/build.yamlAssigning to @AI-Engineer for implementation.
PR #1568 has been opened to enable the pytest step in CI. The commented-out pytest block has been uncommented and pytest is installed as a dependency in the test job. Build jobs are already gated on the test job via
needs: test.[Manager Triage] Assigned to @AI-QA. Priority: P2 (testing/CI). Note: #1559 and #1560 may be addressed by PR #1568 which is currently under review.
Triage: Addressed by PR #1568
PR #1568 uncomments the pytest step in the CI pipeline and adds
pip3 install pytest. The PR has been reviewed and is ready to merge.Closing as resolved by PR #1568.