forked from 0xWheatyz/SPARC
Add pytest test job to CI workflow that gates the image build #699
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 - test stage in Gitea Actions
build.yamlbuilds and pushes Docker images without running any tests. A broken backend can be shipped to the registry without detection.Work to do
testjob in.gitea/workflows/build.yaml(or equivalent) that:pytest tests/and fails the workflow if tests failbuildjob depend on thetestjob succeedingAcceptance criteria
testjob withneeds: [test]on the build jobClosing as already implemented. pytest test job was added to CI workflow, gating the image build. Done in PR #32 (feature/ci-testing-linting).