-
Notifications
You must be signed in to change notification settings - Fork 21
41 lines (31 loc) · 1.13 KB
/
pr-test.yaml
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
name: PR Test Suite
on:
pull_request:
branches: [main]
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
e2e-test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Create .env file
run: |
echo "ELEVENLABS_API_KEY=${{ secrets.ELEVENLABS_API_KEY }}" > .env
echo "NVIDIA_API_KEY=${{ secrets.NVIDIA_API_KEY }}" >> .env
echo "MAX_CONCURRENT_REQUESTS=10" >> .env
- name: Start services in detached mode
run: make ci DETACH=1
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.10"
- name: Install test dependencies
run: |
python -m pip install --upgrade pip
pip install -r tests/requirements-test.txt # Make sure this file exists with your test dependencies
- name: Run monologue E2E tests
run: python tests/test.py --monologue --target bofa-context.pdf --context citi-context.pdf
- name: Run podcast E2E tests
run: python tests/test.py --target bofa-context.pdf --context citi-context.pdf