Skip to content

Add CI workflow for lint and tests on every PR#3

Merged
varjoranta merged 1 commit into
mainfrom
ci/lint-and-tests
May 13, 2026
Merged

Add CI workflow for lint and tests on every PR#3
varjoranta merged 1 commit into
mainfrom
ci/lint-and-tests

Conversation

@varjoranta
Copy link
Copy Markdown
Owner

Summary

  • New .github/workflows/ci.yml runs on every push to main and every PR.
  • Three jobs: lint (ruff, single Python), unit (pytest tests/unit across 3.12/3.13/3.14), integration (pytest tests/integration across 3.12/3.13/3.14 with a Postgres 16 service container).
  • Postgres exposes port 5532 to match the local conftest probe, so no env override is needed.

The existing release.yml already anticipated this gate (see its inline note). After merge, branch protection on main can require these checks.

Test plan

  • CI runs green on this PR.
  • Verify all three jobs appear in the PR checks UI.

Three jobs on every push to main and every PR:
- lint: ruff check on src + tests
- unit: pytest tests/unit on Python 3.12/3.13/3.14
- integration: pytest tests/integration on the same matrix with a
  Postgres 16 service container

Postgres exposes 5532 to match the local conftest probe, so no env
override is needed.

The existing release.yml stays as the ship workflow; this is the
per-PR gate it anticipated (see comment in release.yml).
@varjoranta varjoranta merged commit 45f9242 into main May 13, 2026
7 checks passed
@varjoranta varjoranta deleted the ci/lint-and-tests branch May 13, 2026 07:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant