-
Notifications
You must be signed in to change notification settings - Fork 440
94 lines (81 loc) · 2.62 KB
/
ci.yml
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
81
82
83
84
85
86
87
88
89
90
91
92
93
name: CI
on:
push:
branches:
- main
- dev
pull_request:
branches:
- main
- dev
workflow_dispatch:
jobs:
ruff:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v4
with:
python-version: "3.9"
cache: "pip"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install ruff
- name: Ruff
run: ruff check --output-format=github .
- name: Check format
run: ruff format --check .
type-check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- uses: actions/setup-python@v5
with:
python-version: "3.9"
cache: "pip"
- name: Install mypy
run: python -m pip install --upgrade mypy
- name: Install all packages
run: |
pip install ./livekit-agents \
./livekit-plugins/livekit-plugins-openai \
./livekit-plugins/livekit-plugins-deepgram \
./livekit-plugins/livekit-plugins-google \
./livekit-plugins/livekit-plugins-nltk \
./livekit-plugins/livekit-plugins-silero \
./livekit-plugins/livekit-plugins-elevenlabs \
./livekit-plugins/livekit-plugins-cartesia \
./livekit-plugins/livekit-plugins-rag \
./livekit-plugins/livekit-plugins-azure \
./livekit-plugins/livekit-plugins-anthropic \
./livekit-plugins/livekit-plugins-llama-index \
./livekit-plugins/livekit-plugins-fal
- name: Install stub packages
run: |
pip install \
pandas-stubs \
types-Pygments \
types-cachetools \
types-cffi \
types-psutil \
types-pyOpenSSL \
types-requests \
types-openpyxl
- name: Check Types
run: |
mypy --install-types --non-interactive \
-p livekit.agents \
-p livekit.plugins.openai \
-p livekit.plugins.deepgram \
-p livekit.plugins.google \
-p livekit.plugins.nltk \
-p livekit.plugins.silero \
-p livekit.plugins.elevenlabs \
-p livekit.plugins.cartesia \
-p livekit.plugins.rag \
-p livekit.plugins.azure \
-p livekit.plugins.anthropic \
-p livekit.plugins.fal