forked from 0xWheatyz/SPARC
Add pytest test job to Gitea Actions CI workflow that gates the image build #1084
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 reference: P2 / CI/CD - missing test stage
The
build.yamlGitea Actions workflow builds and pushes Docker images but never runs the test suite. Broken code can be shipped as long as it builds.What to do
testjob tobuild.yaml(or a separatetest.yamlworkflow) that:pytest tests/with coverage output.buildjob depend ontestso images are only pushed when tests pass.Acceptance criteria
pytestruns on every push and pull request.Resolved by PR #32 (commit
fbb72fe) which added pytest and ruff linting to the CI workflow. Closing as complete.