forked from 0xWheatyz/SPARC
Add pytest test job to Gitea Actions CI workflow #864
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 the Gitea Actions workflow
The
build.yamlworkflow builds and pushes Docker images but never runspytest. Test failures are only discovered manually, not on every push.Work to do
testjob to.gitea/workflows/build.yaml(or create a separatetest.yamlworkflow).requirements.txtpytest tests/ -v --tb=shortbuildjob on thetestjob passing (usingneeds: test).Acceptance criteria
pytest.Resolved in codebase. .gitea/workflows/test.yaml and build.yaml both include a pytest step that runs python3 -m pytest tests/ -v --tb=short -x with proper env vars. The test job gates the build jobs. Closing as implemented.