-
Notifications
You must be signed in to change notification settings - Fork 32
71 lines (60 loc) · 1.71 KB
/
integration_test.yaml
File metadata and controls
71 lines (60 loc) · 1.71 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
name: Integration Test
on:
pull_request:
types:
- opened
- reopened
- synchronize
push:
branches:
- main
jobs:
test:
runs-on: ubuntu-latest
# Get environment variables.
env:
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
GOOGLE_API_KEY: ${{ secrets.GOOGLE_API_KEY }}
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Install uv
uses: astral-sh/setup-uv@v6
with:
version: "0.7.8"
enable-cache: true
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version-file: ".python-version"
- name: Install system dependencies for rendering
run: |
sudo apt-get update
sudo apt-get install -y xvfb libegl1
- name: Install dependencies
run: uv sync
- name: Restore testmon cache
id: cache-testmon-restore
uses: actions/cache/restore@v4
with:
path: |
.testmondata
.testmondata-shm
.testmondata-wal
key: testmon-integration-${{ runner.os }}-${{ github.sha }}
restore-keys: |
testmon-integration-${{ runner.os }}-
- name: Run integration tests
timeout-minutes: 30
run: uv run pytest tests/integration/ --testmon -x
- name: Save testmon cache
uses: actions/cache/save@v4
if: >-
(success() || failure()) &&
steps.cache-testmon-restore.outputs.cache-hit != 'true'
with:
path: |
.testmondata
.testmondata-shm
.testmondata-wal
key: ${{ steps.cache-testmon-restore.outputs.cache-primary-key }}