Skip to content
Merged
Show file tree
Hide file tree
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
28 changes: 28 additions & 0 deletions .github/workflows/python-sdk-ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: "CI: Python SDK"

on:
push:
branches: [main]
pull_request:

Comment thread
gregnazario marked this conversation as resolved.
permissions:
contents: read

jobs:
check:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.11", "3.12", "3.13"]
env:
UV_PYTHON: ${{ matrix.python-version }}
steps:
- uses: actions/checkout@v6
- uses: astral-sh/setup-uv@v8.0.0
- run: uv python install ${{ matrix.python-version }}
- run: uv sync --frozen
- run: uv run ruff check .
Comment on lines +21 to +24
Copy link

Copilot AI Apr 6, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The job installs a matrix Python version, but uv sync/uv run may still end up using the project’s pinned interpreter (there’s a .python-version file set to 3.11) unless the interpreter is explicitly selected. To ensure the matrix is actually exercised, set UV_PYTHON=${{ matrix.python-version }} for the job/steps or run uv run --python ... / uv python pin before syncing/running tools.

Copilot uses AI. Check for mistakes.
- run: uv run ruff format --check .
- run: uv run pyright
- run: uv run pytest --cov=decibel --cov-report=xml --cov-report=term
- run: uv build
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ dev = [
"pyright>=1.1.399",
"pytest>=9.0.2",
"pytest-asyncio>=0.24.0",
"pytest-cov>=6.0.0",
"pre-commit>=4.0.0",
]

Expand Down
Loading