Skip to content

Commit 77602f3

Browse files
committed
update other ci workflows to use uv
1 parent 0ae2588 commit 77602f3

File tree

3 files changed

+24
-14
lines changed

3 files changed

+24
-14
lines changed

.github/workflows/check-types.yml

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,14 +22,20 @@ jobs:
2222
with:
2323
python-version: 3.9
2424

25-
- name: Download ffi
26-
run: python -m pip install requests && python livekit-rtc/rust-sdks/download_ffi.py --output $(python -m site --user-site)/livekit/rtc/resources
25+
- name: Install uv
26+
uses: astral-sh/setup-uv@v5
27+
with:
28+
enable-cache: true
29+
cache-dependency-glob: "uv.lock"
2730

28-
- name: Install mypy
29-
run: python -m pip install --upgrade mypy
31+
- name: Install the project
32+
run: uv sync --all-extras --dev
33+
34+
- name: Download ffi
35+
run: uv run python livekit-rtc/rust-sdks/download_ffi.py --output $(python -m site --user-site)/livekit/rtc/resources
3036

3137
- name: Install packages
32-
run: python -m pip install pytest ./livekit-api ./livekit-protocol ./livekit-rtc pydantic numpy ipython
38+
run: uv add ./livekit-api ./livekit-protocol ./livekit-rtc
3339

3440
- name: Check Types
35-
run: python -m mypy --install-type --non-interactive -p 'livekit-protocol' -p 'livekit-api' -p 'livekit-rtc'
41+
run: uv run mypy --install-type --non-interactive -p 'livekit-protocol' -p 'livekit-api' -p 'livekit-rtc'

.github/workflows/ruff.yml

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,17 @@ jobs:
99
with:
1010
python-version: "3.9"
1111

12-
- name: Install dependencies
13-
run: |
14-
python -m pip install --upgrade pip
15-
pip install ruff
12+
- name: Install uv
13+
uses: astral-sh/setup-uv@v5
14+
with:
15+
enable-cache: true
16+
cache-dependency-glob: "uv.lock"
17+
18+
- name: Install the project
19+
run: uv sync --all-extras --dev
1620

1721
- name: Ruff livekit-api
18-
run: ruff check --output-format=github .
22+
run: uvx ruff check --output-format=github .
1923

2024
- name: Check format
21-
run: ruff format --check .
25+
run: uvx format --check .

pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ livekit = { workspace = true }
1313
livekit-api = { workspace = true }
1414
livekit-protocol = { workspace = true }
1515

16-
[tool.uv]
17-
dev-dependencies = [
16+
[dependency-groups]
17+
dev = [
1818
# Linting and type checking
1919
"ruff>=0.8.5",
2020
"mypy>=1.13.0",

0 commit comments

Comments
 (0)