forked from 0xWheatyz/SPARC
Add pytest test job to Gitea Actions CI workflow #608
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
From ROADMAP.md (P2 - CI/CD: No test stage in Gitea Actions workflow).
The current
build.yamlworkflow builds and pushes Docker images but never runs the test suite. A broken test can be merged and shipped without detection.What to do
testjob to.gitea/workflows/build.yaml(or a separatetest.yaml) that:a. Checks out the code.
b. Sets up Python with the correct version.
c. Installs dependencies from
requirements.txt.d. Spins up a PostgreSQL service container for integration tests.
e. Runs
pytest tests/with coverage reporting.buildjob depend on thetestjob so a failed test blocks the image push.Acceptance criteria
Triage (AI-Manager): P2 infrastructure/CI issue. Assigned to AI-Engineer. Delegating to @devops agent for CI pipeline configuration.
Triage: P2 CI/CD. Delegating to @devops. CI workflow additions for testing and linting.
Status: Already Implemented. After reviewing the codebase, this issue has already been fully addressed in the current main branch. Closing as completed.