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
|
- name: Install dependencies
|
||||||
run: |
|
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
|
- name: Run tests with coverage
|
||||||
run: |
|
run: |
|
||||||
|
|||||||
2
.github/workflows/tests.yaml
vendored
2
.github/workflows/tests.yaml
vendored
@@ -37,7 +37,7 @@ jobs:
|
|||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: |
|
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
|
- name: Test with pytest
|
||||||
run: |
|
run: |
|
||||||
|
|||||||
@@ -125,7 +125,6 @@ dev = [
|
|||||||
"build~=1.2.2",
|
"build~=1.2.2",
|
||||||
"coverage~=7.9.1",
|
"coverage~=7.9.1",
|
||||||
"grpcio-tools~=1.67.1",
|
"grpcio-tools~=1.67.1",
|
||||||
"livekit~=1.0.13",
|
|
||||||
"pip-tools~=7.4.1",
|
"pip-tools~=7.4.1",
|
||||||
"pre-commit~=4.2.0",
|
"pre-commit~=4.2.0",
|
||||||
"pyright>=1.1.404,<1.2",
|
"pyright>=1.1.404,<1.2",
|
||||||
|
|||||||
@@ -14,15 +14,21 @@ only starts when there is a consumer for the frames.
|
|||||||
import unittest
|
import unittest
|
||||||
from unittest.mock import AsyncMock, MagicMock, patch
|
from unittest.mock import AsyncMock, MagicMock, patch
|
||||||
|
|
||||||
from livekit import rtc
|
try:
|
||||||
|
from livekit import rtc
|
||||||
|
|
||||||
from pipecat.transports.livekit.transport import (
|
from pipecat.transports.livekit.transport import (
|
||||||
LiveKitCallbacks,
|
LiveKitCallbacks,
|
||||||
LiveKitParams,
|
LiveKitParams,
|
||||||
LiveKitTransportClient,
|
LiveKitTransportClient,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
LIVEKIT_AVAILABLE = True
|
||||||
|
except ImportError:
|
||||||
|
LIVEKIT_AVAILABLE = False
|
||||||
|
|
||||||
|
|
||||||
|
@unittest.skipUnless(LIVEKIT_AVAILABLE, "livekit package not installed")
|
||||||
class TestLiveKitVideoStreamMemoryLeak(unittest.IsolatedAsyncioTestCase):
|
class TestLiveKitVideoStreamMemoryLeak(unittest.IsolatedAsyncioTestCase):
|
||||||
"""Regression tests for video queue memory leak (#3116).
|
"""Regression tests for video queue memory leak (#3116).
|
||||||
|
|
||||||
|
|||||||
2
uv.lock
generated
2
uv.lock
generated
@@ -4462,7 +4462,6 @@ dev = [
|
|||||||
{ name = "build" },
|
{ name = "build" },
|
||||||
{ name = "coverage" },
|
{ name = "coverage" },
|
||||||
{ name = "grpcio-tools" },
|
{ name = "grpcio-tools" },
|
||||||
{ name = "livekit" },
|
|
||||||
{ name = "pip-tools" },
|
{ name = "pip-tools" },
|
||||||
{ name = "pre-commit" },
|
{ name = "pre-commit" },
|
||||||
{ name = "pyright" },
|
{ name = "pyright" },
|
||||||
@@ -4601,7 +4600,6 @@ dev = [
|
|||||||
{ name = "build", specifier = "~=1.2.2" },
|
{ name = "build", specifier = "~=1.2.2" },
|
||||||
{ name = "coverage", specifier = "~=7.9.1" },
|
{ name = "coverage", specifier = "~=7.9.1" },
|
||||||
{ name = "grpcio-tools", specifier = "~=1.67.1" },
|
{ name = "grpcio-tools", specifier = "~=1.67.1" },
|
||||||
{ name = "livekit", specifier = "~=1.0.13" },
|
|
||||||
{ name = "pip-tools", specifier = "~=7.4.1" },
|
{ name = "pip-tools", specifier = "~=7.4.1" },
|
||||||
{ name = "pre-commit", specifier = "~=4.2.0" },
|
{ name = "pre-commit", specifier = "~=4.2.0" },
|
||||||
{ name = "pyright", specifier = ">=1.1.404,<1.2" },
|
{ name = "pyright", specifier = ">=1.1.404,<1.2" },
|
||||||
|
|||||||
Reference in New Issue
Block a user