Skip to content

Commit f6359d4

Browse files
chore: install livekit as optional extra in CI instead of dev dep
1 parent c89ae71 commit f6359d4

5 files changed

Lines changed: 14 additions & 11 deletions

File tree

.github/workflows/coverage.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ jobs:
3333
3434
- name: Install dependencies
3535
run: |
36-
uv sync --group dev --extra anthropic --extra aws --extra google --extra langchain --extra websocket
36+
uv sync --group dev --extra anthropic --extra aws --extra google --extra langchain --extra livekit --extra websocket
3737
3838
- name: Run tests with coverage
3939
run: |

.github/workflows/tests.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ jobs:
3737
3838
- name: Install dependencies
3939
run: |
40-
uv sync --group dev --extra anthropic --extra aws --extra google --extra langchain --extra websocket
40+
uv sync --group dev --extra anthropic --extra aws --extra google --extra langchain --extra livekit --extra websocket
4141
4242
- name: Test with pytest
4343
run: |

pyproject.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,6 @@ dev = [
125125
"build~=1.2.2",
126126
"coverage~=7.9.1",
127127
"grpcio-tools~=1.67.1",
128-
"livekit~=1.0.13",
129128
"pip-tools~=7.4.1",
130129
"pre-commit~=4.2.0",
131130
"pyright>=1.1.404,<1.2",

tests/test_livekit_transport.py

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,15 +14,21 @@
1414
import unittest
1515
from unittest.mock import AsyncMock, MagicMock, patch
1616

17-
from livekit import rtc
17+
try:
18+
from livekit import rtc
1819

19-
from pipecat.transports.livekit.transport import (
20-
LiveKitCallbacks,
21-
LiveKitParams,
22-
LiveKitTransportClient,
23-
)
20+
from pipecat.transports.livekit.transport import (
21+
LiveKitCallbacks,
22+
LiveKitParams,
23+
LiveKitTransportClient,
24+
)
2425

26+
LIVEKIT_AVAILABLE = True
27+
except ImportError:
28+
LIVEKIT_AVAILABLE = False
2529

30+
31+
@unittest.skipUnless(LIVEKIT_AVAILABLE, "livekit package not installed")
2632
class TestLiveKitVideoStreamMemoryLeak(unittest.IsolatedAsyncioTestCase):
2733
"""Regression tests for video queue memory leak (#3116).
2834

uv.lock

Lines changed: 0 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)