ci: Add GitHub Actions workflow and example test#2
Merged
Conversation
- Add test.yml workflow that runs on push/PR to main - Uses PostgreSQL 17 service container - Runs ruff linting, mypy type checking, and pytest - Add simple example test demonstrating framework usage - Example shows transaction isolation between tests
🤖 Devin AI EngineerI'll be helping with this pull request! Here's what you should know: ✅ I will automatically:
⚙️ Control Options:
|
- Switch to ghcr.io/constructive-io/docker/postgres-plus:17 image - Add concurrency settings to cancel in-progress runs - Add workflow_dispatch for manual triggers - Add develop branch to triggers - Update password to match constructive pattern - Move env vars to job level
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds CI/CD infrastructure for the pysql-test framework:
GitHub Actions workflow (
.github/workflows/test.yml) that runs on push/PR to main and develop:ghcr.io/constructive-io/docker/postgres-plus:17image (matches constructive repo pattern)Simple example test (
tests/test_example.py) demonstrating framework usage:before_each()/after_each()transaction isolationReview & Testing Checklist for Human
ghcr.io/constructive-io/docker/postgres-plus:17image is accessible and contains expected PostgreSQL extensionssnok/install-poetry@v1action is acceptable for your CI environmenttest_empty_table_after_rollbackcorrectly demonstrates rollback (it depends on running aftertest_transaction_isolation- pytest may not guarantee order)Confirm CI passes on this PR- CI is now passingTest plan: Merge this PR and verify the GitHub Actions workflow runs successfully on the merge commit to main.
Updates since last revision
postgres:17toghcr.io/constructive-io/docker/postgres-plus:17to match constructive repo patternworkflow_dispatchfor manual triggersdevelopbranch to push/PR triggersNotes
Link to Devin run: https://app.devin.ai/sessions/1203eea9373240d797329ae288ab6dd7
Requested by: Dan Lynch (@pyramation)