forked from 0xWheatyz/SPARC
Add pytest test stage to Gitea Actions CI workflow #18
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?
Roadmap Reference
P2 — CI/CD: no test stage
Problem
The
build.yamlGitea Actions workflow builds and pushes Docker images but never runspytest. Broken code can be merged and shipped without any test failure catching it.What to do
testjob to.gitea/workflows/build.yaml(or a separatetest.yamlworkflow) that:pip install -r requirements.txt.pytest tests/ -v.buildjob should declareneeds: testso images are only built when tests pass.Acceptance Criteria
pytestoutput is visible in the Gitea Actions log.Triage: P2 CI/CD, small. Delegating to @devops via @developer. Add pytest stage to Gitea Actions. Queued after P1 completion.
Implementation complete in PR #32 (feature/ci-testing-linting). Awaiting review.
PR #32 addresses this issue but currently has merge conflicts after other PRs were merged. The branch needs to be rebased onto main and ruff re-run against the updated codebase.
Closed by PR #32 (merged). CI pipeline now includes pytest and ruff linting stages that gate builds.