Set up CI/CD pipeline (lint, test, docker build) #5
Reference in New Issue
Block a user
No description provided.
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?
As a maintainer, I want automated linting, testing, migrations, and Docker builds so that the project remains healthy and contributions are safe to merge.
Given a PR targeting main, when CI runs, then:
Ruff lint passes (no errors).
Black format check passes.
Postgres service starts; Alembic runs upgrade head successfully using split env vars.
Pytest runs and passes at least the health/key tests.
Docker image builds successfully.
Given a failing test or migration, when CI runs, then the job fails with clear logs.
Status badge visible in README.
Cache pip and Docker layers for speed.
Job completes in < 10 minutes.
Created simple pipeline for GitHub runner. Unclean but works.
Need to set up Gitea runner for better speed