Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
55 changes: 55 additions & 0 deletions .github/workflows/sqlguard-ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
name: SQLGuard CI/CD

on:
push:
branches:
- main
pull_request:
branches:
- main

jobs:
test-sqlguard:
runs-on: ubuntu-latest
container:
image: ghcr.io/astral-sh/uv:debian-slim
steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Run tests with uv
run: |
export UV_LINK_MODE=copy
uv sync --all-extras
uv run pytest

test-tox-sqlguard:
runs-on: ubuntu-latest
container:
image: ghcr.io/astral-sh/uv:debian-slim
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Install Tox & Tox UV
run: |
uv tool install tox --with tox-uv
echo "$HOME/.local/bin" >> $GITHUB_PATH
- name: Run Tox suite
run: tox run

publish-sqlguard:
needs: [test-sqlguard, test-tox-sqlguard]
if: startsWith(github.ref, 'refs/tags/')
runs-on: ubuntu-latest
container:
image: ghcr.io/astral-sh/uv:debian-slim
steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Build and publish package
env:
PYPI_API_TOKEN: ${{ secrets.PYPI_API_TOKEN }}
run: |
uv build
uv publish