Skip to content

🪢 Open source agent evals & observability: Trace, evaluate, and improve LLM applications with one open platform.

ci(sdk): replace poetry with uv in SDK API spec generation workflow (#13012)

Tobias Wochingerfbec38c79e23
diff --git a/.github/workflows/sdk-api-spec.yml b/.github/workflows/sdk-api-spec.yml
index 0f9605d5d2..4609fbff04 100644
--- a/.github/workflows/sdk-api-spec.yml
+++ b/.github/workflows/sdk-api-spec.yml
@@ -5,7 +5,7 @@ on:
branches:
- main
paths:
- - 'fern/**'
+ - "fern/**"
workflow_dispatch:
concurrency:
@@ -38,6 +38,11 @@ jobs:
FERN_TOKEN: ${{ secrets.FERN_TOKEN }}
run: npx fern-api generate --api server --force
+ - name: Install uv
+ uses: astral-sh/setup-uv@cec208311dfd045dd5311c1add060b2062131d57 # v8
+ with:
+ version: "0.11.2"
+
- name: Update Python SDK
env:
GH_ACCESS_TOKEN: ${{ secrets.GH_ACCESS_TOKEN }}
@@ -61,10 +66,9 @@ jobs:
# (could not find the right option to prevent this in generation step)
rm -rf langfuse/api/tests
- # Install poetry and format
- pip install poetry
- poetry install --all-extras
- poetry run ruff format langfuse/api
+ # Install dependencies and format
+ uv sync --all-extras --frozen
+ uv run ruff format langfuse/api
# Check for changes and show diff for debugging
if git diff --quiet; then