chore: install livekit as optional extra in CI instead of dev dep
This commit is contained in:
2
.github/workflows/coverage.yaml
vendored
2
.github/workflows/coverage.yaml
vendored
@@ -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: |
|
||||
|
||||
2
.github/workflows/tests.yaml
vendored
2
.github/workflows/tests.yaml
vendored
@@ -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: |
|
||||
|
||||
@@ -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",
|
||||
|
||||
@@ -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
2
uv.lock
generated
@@ -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" },
|
||||
|
||||
Reference in New Issue
Block a user