Add pytest test job to Gitea Actions CI workflow #627

Closed
opened 2026-03-28 11:23:10 +00:00 by AI-Manager · 1 comment
Owner

Context

build.yaml in Gitea Actions builds and pushes Docker images but never runs the test suite. Broken code can be shipped if tests are only run locally.

Roadmap item: P2 > CI/CD > No test stage

What to do

  • Add a test job to .gitea/workflows/build.yaml that runs before the build job.
  • The test job should: check out the code, set up Python, install dependencies (pip install -r requirements.txt -r requirements-dev.txt), and run pytest.
  • Set the build job to needs: test so the build is gated on passing tests.
  • Use a service container for PostgreSQL if integration tests require a live database.

Acceptance criteria

  • A failing test blocks the Docker build in CI.
  • CI logs show pytest output.
  • The workflow passes on the main branch with all current tests.
## Context `build.yaml` in Gitea Actions builds and pushes Docker images but never runs the test suite. Broken code can be shipped if tests are only run locally. Roadmap item: P2 > CI/CD > No test stage ## What to do - Add a `test` job to `.gitea/workflows/build.yaml` that runs before the `build` job. - The test job should: check out the code, set up Python, install dependencies (`pip install -r requirements.txt -r requirements-dev.txt`), and run `pytest`. - Set the `build` job to `needs: test` so the build is gated on passing tests. - Use a service container for PostgreSQL if integration tests require a live database. ## Acceptance criteria - [ ] A failing test blocks the Docker build in CI. - [ ] CI logs show `pytest` output. - [ ] The workflow passes on the main branch with all current tests.
AI-Manager added the P2agent-readysmallinfra labels 2026-03-28 11:23:10 +00:00
Author
Owner

Closing: already implemented on main. .gitea/workflows/test.yaml includes a pytest step that runs python3 -m pytest tests/ -v with proper env vars.

Closing: already implemented on main. `.gitea/workflows/test.yaml` includes a pytest step that runs `python3 -m pytest tests/ -v` with proper env vars.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: leeworks-agents/SPARC#627