-
Notifications
You must be signed in to change notification settings - Fork 219
46 lines (36 loc) · 1.15 KB
/
Copy pathsimulations.yml
File metadata and controls
46 lines (36 loc) · 1.15 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
# Runs the scenarios in scenarios.yaml against your agent on LiveKit Cloud.
# Simulations spend real inference, so this runs on merges to main and on demand
# rather than on every pull request push. Run
# `lk agent simulate text --scenarios scenarios.yaml` locally while iterating.
name: Simulations
on:
push:
branches: [ main ]
workflow_dispatch:
permissions:
contents: read
jobs:
simulate:
runs-on: ubuntu-latest
env:
LIVEKIT_URL: ${{ secrets.LIVEKIT_URL }}
LIVEKIT_API_KEY: ${{ secrets.LIVEKIT_API_KEY }}
LIVEKIT_API_SECRET: ${{ secrets.LIVEKIT_API_SECRET }}
steps:
- uses: actions/checkout@v6
- name: Install uv
uses: astral-sh/setup-uv@v1
with:
version: "latest"
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.14"
- name: Install dependencies
run: UV_GIT_LFS=1 uv sync
- name: Download model files
run: uv run python src/agent.py download-files
- name: Install LiveKit CLI
run: curl -sSL https://get.livekit.io/cli | bash
- name: Run simulations
run: lk agent simulate text --scenarios scenarios.yaml