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

@@ -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).