forked from 0xWheatyz/SPARC
CI: Add pytest test stage to Gitea Actions build workflow #481
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 / No test stage in workflow
Problem
The
build.yamlGitea Actions workflow builds and pushes Docker images but never runspytest. Broken code can be built and deployed without any test gate.Task
testjob tobuild.yamlthat runs before thebuildjob.pytest tests/, and fail the workflow if tests fail.needs: [test]so images are only pushed on passing tests.Acceptance Criteria
pytestruns in CI on every push and pull request.Already implemented.
.gitea/workflows/test.yamlincludes a pytest step that runspython3 -m pytest tests/ -v --tb=short -xwith appropriate env vars. Closing as completed.