forked from 0xWheatyz/SPARC
Add pytest test job to Gitea Actions CI workflow #441
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?
Summary
The current
build.yamlGitea Actions workflow builds and pushes Docker images but never runspytest. A failing test suite would not block image publication.What to do
testjob tobuild.yaml(or create a separatetest.yamlworkflow) that:pytest tests/with any required environment variables mocked or stubbedbuildjob depend on (needs: test) the test job so a test failure blocks image publishingAcceptance Criteria
pytestruns in CI on every push and pull requestReference
Roadmap: P2 - CI/CD - No test stage in Gitea Actions workflow
Triage: Priority Wave 4 (P2 improvement). Assigned to @AI-Engineer. Queued for implementation.
Resolution: Already implemented.
build.yaml:testjob runspytest tests/ -v --tb=short -x(line 53). Thebuild-apiandbuild-frontendjobs both haveneeds: test, so a test failure blocks image publication.test.yaml: Separate workflow runs on push to main and on pull requests, also runspytest tests/ -v --tb=short -x(line 57).DATABASE_URL,API_KEY,JWT_SECRET,APP_ENV).All acceptance criteria are met. Closing.