Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions .github/workflows/build-rtc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -139,20 +139,29 @@ jobs:
- os: ubuntu-latest
python-version: "3.13"
artifact: rtc-release-ubuntu-latest
- os: ubuntu-latest
python-version: "3.14"
artifact: rtc-release-ubuntu-latest
# macOS tests (arm64 runner)
- os: macos-latest
python-version: "3.9"
artifact: rtc-release-macos-latest
- os: macos-latest
python-version: "3.12"
artifact: rtc-release-macos-latest
- os: macos-latest
python-version: "3.14"
artifact: rtc-release-macos-latest
# Windows tests
- os: windows-latest
python-version: "3.9"
artifact: rtc-release-windows-latest
- os: windows-latest
python-version: "3.12"
artifact: rtc-release-windows-latest
- os: windows-latest
python-version: "3.14"
artifact: rtc-release-windows-latest
uses: ./.github/workflows/tests.yml
with:
os: ${{ matrix.os }}
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,10 @@ jobs:
submodules: true
lfs: true

- uses: actions/setup-python@v4
- uses: actions/setup-python@v5
with:
python-version: ${{ inputs.python-version }}
allow-prereleases: true

- name: Install uv
uses: astral-sh/setup-uv@v5
Expand Down
5 changes: 3 additions & 2 deletions tests/rtc/test_ffi_queue.py
Original file line number Diff line number Diff line change
Expand Up @@ -147,8 +147,9 @@ def test_filter_with_multiple_event_types(self, event_loop):
queue = FfiQueue()
sub = queue.subscribe(
event_loop,
filter_fn=lambda e: e.WhichOneof("message")
in {"audio_stream_event", "video_stream_event"},
filter_fn=lambda e: (
e.WhichOneof("message") in {"audio_stream_event", "video_stream_event"}
),
)

events = [
Expand Down
9 changes: 9 additions & 0 deletions tests/rtc/test_import.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
"""Smoke test: import the SDK and initialize the FFI library."""


def test_import_and_ffi_initialize():
from livekit import rtc # noqa: F401
from livekit.rtc._ffi_client import FfiClient

# accessing .instance triggers livekit_ffi_initialize
assert FfiClient.instance is not None