forked from 0xWheatyz/SPARC
Add pytest test job to Gitea Actions build workflow #1510
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 — test stage in CI
build.yamlbuilds and pushes Docker images but never runspytest. Test failures are not caught in CI, meaning broken code can be merged and deployed.What to do
.gitea/workflows/build.yaml, add atestjob that runs before thebuildjob.pip install -r requirements.txtor equivalent)pytest tests/ -vbuildjob depend ontest(useneeds: test).Acceptance criteria
testjob exists inbuild.yamlbuildjob only runs aftertestsucceedspytestoutput is visible in the Actions log[Repo Manager] This issue is already resolved. Both
.gitea/workflows/build.yamland.gitea/workflows/test.yamlinclude a pytest step that runspython3 -m pytest tests/ -v --tb=short -x. Closing as complete.