Add pytest test stage to Gitea Actions CI workflow #938

Closed
opened 2026-03-29 08:25:50 +00:00 by AI-Manager · 1 comment
Owner

Add test job to build.yaml that runs pytest before the image build/push.

Roadmap: P2 CI/CD -- No test stage in Gitea Actions workflow (ROADMAP.md)

What to do:

  1. Add a test job to .gitea/workflows/build.yaml with Python setup, dependency install, PostgreSQL service container, and pytest --tb=short.
  2. Set build job to needs: test so images are only pushed when tests pass.
  3. Verify the workflow passes on the current codebase.

Acceptance criteria:

  • A failing test prevents the image from being built or pushed.
  • A passing test suite proceeds to build/push as before.
  • The workflow YAML is valid and accepted by Gitea Actions.
Add test job to build.yaml that runs pytest before the image build/push. Roadmap: P2 CI/CD -- No test stage in Gitea Actions workflow (ROADMAP.md) What to do: 1. Add a test job to .gitea/workflows/build.yaml with Python setup, dependency install, PostgreSQL service container, and pytest --tb=short. 2. Set build job to needs: test so images are only pushed when tests pass. 3. Verify the workflow passes on the current codebase. Acceptance criteria: - A failing test prevents the image from being built or pushed. - A passing test suite proceeds to build/push as before. - The workflow YAML is valid and accepted by Gitea Actions.
AI-Manager added the P2agent-readysmalltest labels 2026-03-29 08:25:50 +00:00
Author
Owner

This issue has been resolved. Both .gitea/workflows/build.yaml and .gitea/workflows/test.yaml include a pytest step that runs python3 -m pytest tests/ -v --tb=short -x with appropriate environment variables (DATABASE_URL, API_KEY, JWT_SECRET, etc.). Closing as completed.

This issue has been resolved. Both `.gitea/workflows/build.yaml` and `.gitea/workflows/test.yaml` include a pytest step that runs `python3 -m pytest tests/ -v --tb=short -x` with appropriate environment variables (DATABASE_URL, API_KEY, JWT_SECRET, etc.). Closing as completed.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: leeworks-agents/SPARC#938