Feat/package install #4
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: CI | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python 3.12 | |
uses: actions/setup-python@v5 | |
with: | |
python-version: "3.12" | |
- name: Install uv | |
run: | | |
curl -LsSf https://astral.sh/uv/install.sh | sh | |
echo "$HOME/.cargo/bin" >> $GITHUB_PATH | |
- name: Test package manager installation | |
run: | | |
# Create venv for package manager installation | |
uv venv .venv-pkg | |
source .venv-pkg/bin/activate | |
# Install via uv | |
uv pip install . | |
# Verify it runs | |
uv run supabase-mcp-server --help | |
# Clean up | |
deactivate | |
rm -rf .venv-pkg | |
- name: Test source installation | |
run: | | |
# Install from source | |
uv venv .venv-src | |
source .venv-src/bin/activate | |
uv pip install -e . | |
# Verify it runs as module | |
uv --directory . run python -m supabase_mcp.main --help | |
- name: Run tests | |
run: | | |
source .venv-src/bin/activate | |
# Install package with test dependencies | |
uv pip install -e ".[dev]" | |
pytest | |
- name: Test build | |
run: | | |
uv pip install build | |
python -m build | |
# Verify dist contains both wheel and tar.gz | |
test -f dist/*.whl | |
test -f dist/*.tar.gz |