Skip to content

Commit 826f4f5

Browse files
Fix sync-api workflow to use uv for dependency management
1 parent a5bbd4b commit 826f4f5

1 file changed

Lines changed: 6 additions & 4 deletions

File tree

.github/workflows/sync-api.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,12 @@ jobs:
1919
with:
2020
python-version: "3.12"
2121

22+
- name: Install uv
23+
run: curl -LsSf https://astral.sh/uv/install.sh | sh
24+
2225
- name: Install dependencies
2326
run: |
24-
python -m pip install --upgrade pip
25-
pip install -e ".[dev]"
27+
uv sync --extra dev
2628
2729
- name: Download latest OpenAPI spec
2830
run: |
@@ -47,12 +49,12 @@ jobs:
4749
- name: Regenerate SDK
4850
if: steps.diff.outputs.changed == 'true'
4951
run: |
50-
python scripts/generate.py --spec-url https://api.rencom.ai
52+
uv run python scripts/generate.py --spec-url https://api.rencom.ai
5153
5254
- name: Run tests
5355
if: steps.diff.outputs.changed == 'true'
5456
run: |
55-
pytest -m unit
57+
uv run pytest -m unit
5658
5759
- name: Create Pull Request
5860
if: steps.diff.outputs.changed == 'true'

0 commit comments

Comments
 (0)