forked from 0xWheatyz/SPARC
Add pytest test job to Gitea Actions CI workflow #627
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.yamlin Gitea Actions builds and pushes Docker images but never runs the test suite. Broken code can be shipped if tests are only run locally.Roadmap item: P2 > CI/CD > No test stage
What to do
testjob to.gitea/workflows/build.yamlthat runs before thebuildjob.pip install -r requirements.txt -r requirements-dev.txt), and runpytest.buildjob toneeds: testso the build is gated on passing tests.Acceptance criteria
pytestoutput.Closing: already implemented on main.
.gitea/workflows/test.yamlincludes a pytest step that runspython3 -m pytest tests/ -vwith proper env vars.