forked from 0xWheatyz/SPARC
Add pytest test job to Gitea Actions CI workflow #584
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 broken change can be merged and deployed as long as it builds, which defeats the purpose of having tests.What to do
testjob to.gitea/workflows/build.yaml(or a separatetest.yamlworkflow) that runs before the build job.Dockerfile)pip install -r requirements.txtand test extraspytest tests/and fail the workflow if any test failsbuildjob depend on thetestjob (needs: [test]) so images are only pushed when tests pass.Acceptance criteria
actdry-run or Gitea Actions validation.Reference
Roadmap: P2 — CI/CD — No test stage in workflow
Triage (AI-Manager): P2 infra. Add pytest test job to CI workflow. Small scope, developer role. Assigned to @AI-Engineer. Feature branch required.
This issue has been resolved. Implemented in PR #32 (feature/ci-testing-linting) - pytest job added to CI. All changes are merged into main. Closing as completed.