forked from 0xWheatyz/SPARC
CI: add pytest test stage to Gitea Actions workflow that gates image builds #532
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 — missing test stage
build.yamlbuilds and pushes Docker images but never runspytest. Test failures are not caught in CI.Task
testjob to.gitea/workflows/build.yamlthat runs before the build jobpytestbuildjob depend on (needs: [test]) so a failing test blocks the image pushAcceptance Criteria
testjob exists inbuild.yamland runspytestbuildjob only runs whentestpassesVerified complete: Both
test.yamlandbuild.yamlCI workflows include a pytest stage that runspython3 -m pytest tests/ -v --tb=short -xand gates the build jobs. Closing as implemented.