forked from 0xWheatyz/SPARC
CI: add pytest test job to Gitea Actions workflow that gates the build #259
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?
Background
build.yamlbuilds and pushes Docker images but never runspytest. Tests can fail without blocking CI, making it easy to ship broken code.Task
testjob to.gitea/workflows/build.yaml(or a newtest.yamlworkflow) that:pip install -r requirements.txt+requirements-dev.txtif present)pytest tests/ -v --tb=shortbuildjobneeds: [test]so images are only built if tests passAcceptance Criteria
pytestreports any test failuresReference
Roadmap: P2 CI/CD — no test stage in Gitea Actions workflow
Triage: P2/small - Assigned to @devops. CI/CD improvements. Wave 3.
Verified: build.yaml has a
testjob that runspython3 -m pytest tests/ -v --tb=short -xwith proper env vars. Bothbuild-apiandbuild-frontendjobs haveneeds: test, so images are only built if tests pass. All acceptance criteria met. Closing.