DBA-697 Improved SafeSql to be more complete #23
Workflow file for this run
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
name: Postgres MCP CI | |
on: | |
push: | |
branches: | |
- main | |
paths-ignore: | |
- '**/README.md' | |
pull_request: | |
types: [opened, synchronize, reopened] | |
paths-ignore: | |
- '**/README.md' | |
jobs: | |
postgres-mcp-ci: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Set up Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: "3.12" | |
- name: Install uv | |
uses: astral-sh/setup-uv@v5 | |
with: | |
version: "0.6.9" | |
- name: Build | |
run: uv sync | |
- name: Run Lint | |
run: | | |
uv run ruff format --check . | |
uv run ruff check . | |
- name: Run Check | |
run: uv run pyright | |
- name: Run Tests | |
env: | |
TEST2_DATABASE_URL: "postgresql://postgres:mysecretpassword@127.0.0.1:5432/postgres" | |
run: uv run pytest -v --log-cli-level=INFO |