chore: install livekit as optional extra in CI instead of dev dep

This commit is contained in:
Luke Payyapilli
2026-01-20 09:16:16 -05:00
parent c89ae717fe
commit f6359d460e
5 changed files with 14 additions and 11 deletions

View File

@@ -33,7 +33,7 @@ jobs:
- name: Install dependencies
run: |
uv sync --group dev --extra anthropic --extra aws --extra google --extra langchain --extra websocket
uv sync --group dev --extra anthropic --extra aws --extra google --extra langchain --extra livekit --extra websocket
- name: Run tests with coverage
run: |

View File

@@ -37,7 +37,7 @@ jobs:
- name: Install dependencies
run: |
uv sync --group dev --extra anthropic --extra aws --extra google --extra langchain --extra websocket
uv sync --group dev --extra anthropic --extra aws --extra google --extra langchain --extra livekit --extra websocket
- name: Test with pytest
run: |

View File

@@ -125,7 +125,6 @@ dev = [
"build~=1.2.2",
"coverage~=7.9.1",
"grpcio-tools~=1.67.1",
"livekit~=1.0.13",
"pip-tools~=7.4.1",
"pre-commit~=4.2.0",
"pyright>=1.1.404,<1.2",

View File

@@ -14,15 +14,21 @@ only starts when there is a consumer for the frames.
import unittest
from unittest.mock import AsyncMock, MagicMock, patch
from livekit import rtc
try:
from livekit import rtc
from pipecat.transports.livekit.transport import (
LiveKitCallbacks,
LiveKitParams,
LiveKitTransportClient,
)
from pipecat.transports.livekit.transport import (
LiveKitCallbacks,
LiveKitParams,
LiveKitTransportClient,
)
LIVEKIT_AVAILABLE = True
except ImportError:
LIVEKIT_AVAILABLE = False
@unittest.skipUnless(LIVEKIT_AVAILABLE, "livekit package not installed")
class TestLiveKitVideoStreamMemoryLeak(unittest.IsolatedAsyncioTestCase):
"""Regression tests for video queue memory leak (#3116).

2
uv.lock generated
View File

@@ -4462,7 +4462,6 @@ dev = [
{ name = "build" },
{ name = "coverage" },
{ name = "grpcio-tools" },
{ name = "livekit" },
{ name = "pip-tools" },
{ name = "pre-commit" },
{ name = "pyright" },
@@ -4601,7 +4600,6 @@ dev = [
{ name = "build", specifier = "~=1.2.2" },
{ name = "coverage", specifier = "~=7.9.1" },
{ name = "grpcio-tools", specifier = "~=1.67.1" },
{ name = "livekit", specifier = "~=1.0.13" },
{ name = "pip-tools", specifier = "~=7.4.1" },
{ name = "pre-commit", specifier = "~=4.2.0" },
{ name = "pyright", specifier = ">=1.1.404,<1.2" },