Skip to content

ci: add GitHub Actions test pipeline#42

Merged
arashmad merged 9 commits into
mainfrom
40-set-up-github-actions-test-pipeline
May 15, 2026
Merged

ci: add GitHub Actions test pipeline#42
arashmad merged 9 commits into
mainfrom
40-set-up-github-actions-test-pipeline

Conversation

@arashmad
Copy link
Copy Markdown
Owner

Summary

Adds a GitHub Actions CI workflow for GeoInsight API.

The workflow runs on pull requests targeting main and pushes to main. It starts a disposable PostGIS database, installs dependencies with uv, applies Alembic migrations, checks migration consistency, runs Ruff checks, and runs the test suite.

Changes

  • Added .github/workflows/ci.yml
  • Uses Python 3.12
  • Installs dependencies with uv sync --dev
  • Starts a disposable PostGIS service container
  • Sets database environment variables for CI
  • Runs uv run alembic upgrade head
  • Runs uv run alembic check
  • Runs uv run ruff format --check .
  • Runs uv run ruff check .
  • Runs uv run pytest

Out of scope

  • Neon remote database setup
  • Deployment pipeline
  • Docker image publishing
  • Production database setup
  • Test coverage thresholds
  • Matrix testing

Notes

This CI workflow intentionally uses a disposable PostGIS service container instead of Neon. Regular PR checks should be isolated, reproducible, and independent from external database services.

How tested locally

  • uv run alembic upgrade head
  • uv run alembic check
  • uv run ruff format --check .
  • uv run ruff check .
  • uv run pytest

Closes #40

@arashmad arashmad self-assigned this May 15, 2026
@arashmad arashmad added test Design and develop any kind of test. ci / cd Regarding to the continues integration / continuous deployment. labels May 15, 2026
@arashmad
Copy link
Copy Markdown
Owner Author

@codex review this pls

Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: f459f0b806

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread migration/env.py
@arashmad arashmad merged commit 99f019b into main May 15, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci / cd Regarding to the continues integration / continuous deployment. test Design and develop any kind of test.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Set up GitHub Actions test pipeline

1 participant