Feat/auth sdk #50
Workflow file for this run
This file contains 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: CI | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
env: | |
UV_VERSION: "0.6.1" # Pin uv version to avoid breaking changes | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
env: | |
SUPABASE_PROJECT_REF: ${{ secrets.SUPABASE_PROJECT_REF }} | |
SUPABASE_DB_PASSWORD: ${{ secrets.SUPABASE_DB_PASSWORD }} | |
SUPABASE_ACCESS_TOKEN: ${{ secrets.SUPABASE_ACCESS_TOKEN }} | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python 3.12 | |
uses: actions/setup-python@v5 | |
with: | |
python-version: "3.12" | |
- name: Install uv | |
uses: astral-sh/setup-uv@v5 | |
with: | |
version: ${{ env.UV_VERSION }} | |
- name: Create venv and install dependencies | |
run: | | |
# Create venv and install dependencies | |
uv venv | |
source .venv/bin/activate | |
uv sync --group dev --frozen | |
- name: Run tests | |
run: | | |
source .venv/bin/activate | |
pytest | |
- name: Build distribution packages | |
run: | | |
uv build --no-sources | |
# Verify dist contains both wheel and tar.gz | |
test -f dist/*.whl | |
test -f dist/*.tar.gz |