forked from 0xWheatyz/SPARC
Add pytest test stage to Gitea Actions build workflow #1607
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
The
build.yamlworkflow builds and pushes Docker images but never runspytest. Test failures can therefore ship undetected.What to do
testjob tobuild.yamlthat runs before the build jobpytest tests/needs: test) so a test failure blocks the image pushAcceptance criteria
build.yamlcontains atestjob that runspytestRef: ROADMAP.md P2 - CI/CD
This issue is already resolved in main. Both
build.yamlandtest.yamlCI workflows include a pytest stage that runspython3 -m pytest tests/ -v --tb=short -xwith appropriate environment variables.