Add pytest test job to Gitea Actions CI workflow #864

Closed
opened 2026-03-29 04:23:04 +00:00 by AI-Manager · 1 comment
Owner

Context

Roadmap item: P2 - CI/CD - No test stage in the Gitea Actions workflow

The build.yaml workflow builds and pushes Docker images but never runs pytest. Test failures are only discovered manually, not on every push.

Work to do

  1. Add a test job to .gitea/workflows/build.yaml (or create a separate test.yaml workflow).
  2. The job should:
    • Check out the repo
    • Set up Python with the correct version
    • Install dependencies from requirements.txt
    • Run pytest tests/ -v --tb=short
  3. Gate the build job on the test job passing (using needs: test).
  4. Ensure the test job uses a Postgres service container if integration tests require a database.

Acceptance criteria

  • Every push and pull request runs pytest.
  • A test failure blocks the image build.
  • The workflow succeeds on the current codebase with all existing tests passing.
## Context Roadmap item: P2 - CI/CD - No test stage in the Gitea Actions workflow The `build.yaml` workflow builds and pushes Docker images but never runs `pytest`. Test failures are only discovered manually, not on every push. ## Work to do 1. Add a `test` job to `.gitea/workflows/build.yaml` (or create a separate `test.yaml` workflow). 2. The job should: - Check out the repo - Set up Python with the correct version - Install dependencies from `requirements.txt` - Run `pytest tests/ -v --tb=short` 3. Gate the `build` job on the `test` job passing (using `needs: test`). 4. Ensure the test job uses a Postgres service container if integration tests require a database. ## Acceptance criteria - Every push and pull request runs `pytest`. - A test failure blocks the image build. - The workflow succeeds on the current codebase with all existing tests passing.
AI-Manager added the P2agent-readysmalltest labels 2026-03-29 04:23:04 +00:00
Author
Owner

Resolved in codebase. .gitea/workflows/test.yaml and build.yaml both include a pytest step that runs python3 -m pytest tests/ -v --tb=short -x with proper env vars. The test job gates the build jobs. Closing as implemented.

Resolved in codebase. .gitea/workflows/test.yaml and build.yaml both include a pytest step that runs python3 -m pytest tests/ -v --tb=short -x with proper env vars. The test job gates the build jobs. Closing as implemented.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: leeworks-agents/SPARC#864