Skip to content

chore: add Docker and environment configuration files #61

chore: add Docker and environment configuration files

chore: add Docker and environment configuration files #61

Workflow file for this run

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 # necessary for pytest
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