-
Notifications
You must be signed in to change notification settings - Fork 119
80 lines (67 loc) · 1.88 KB
/
Copy pathtests.yml
File metadata and controls
80 lines (67 loc) · 1.88 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
name: Tests
on:
push:
branches:
- main
pull_request:
branches:
- main
workflow_dispatch:
jobs:
build-rtc:
name: Build livekit-rtc wheel
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
with:
submodules: true
- uses: actions/setup-python@v6
with:
python-version: "3.9"
- name: Install cibuildwheel
run: python3 -m pip install cibuildwheel==2.17.0
- name: Build wheel
working-directory: ./livekit-rtc
run: python3 -m cibuildwheel --output-dir dist
env:
CIBW_ARCHS: x86_64
- uses: actions/upload-artifact@v4
with:
name: rtc-wheel
path: livekit-rtc/dist/*.whl
tests:
name: Run tests (Python ${{ matrix.python-version }})
needs: build-rtc
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"]
steps:
- uses: actions/checkout@v6
with:
submodules: true
lfs: true
- uses: actions/setup-python@v6
with:
python-version: ${{ matrix.python-version }}
- name: Install uv
uses: astral-sh/setup-uv@v5
with:
enable-cache: true
cache-dependency-glob: "uv.lock"
- name: Download livekit-rtc wheel
uses: actions/download-artifact@v4
with:
name: rtc-wheel
path: rtc-wheel
- name: Install the project
run: uv sync --all-extras --dev
- name: Run tests
env:
LIVEKIT_URL: ${{ secrets.LIVEKIT_URL }}
LIVEKIT_API_KEY: ${{ secrets.LIVEKIT_API_KEY }}
LIVEKIT_API_SECRET: ${{ secrets.LIVEKIT_API_SECRET }}
run: |
uv pip install rtc-wheel/*.whl ./livekit-api ./livekit-protocol
uv run pytest . --ignore=livekit-rtc/rust-sdks