File tree Expand file tree Collapse file tree 3 files changed +24
-14
lines changed
Expand file tree Collapse file tree 3 files changed +24
-14
lines changed Original file line number Diff line number Diff 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'
Original file line number Diff line number Diff line change 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 .
Original file line number Diff line number Diff line change @@ -13,8 +13,8 @@ livekit = { workspace = true }
1313livekit-api = { workspace = true }
1414livekit-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" ,
You can’t perform that action at this time.
0 commit comments