forked from mariadb-corporation/ai-plugins
-
Notifications
You must be signed in to change notification settings - Fork 0
66 lines (61 loc) · 1.65 KB
/
Copy pathopencode-test.yml
File metadata and controls
66 lines (61 loc) · 1.65 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
name: opencode-tests
on:
push:
branches: [main]
pull_request:
schedule:
- cron: "0 6 * * *" # nightly, for the eval tier
workflow_dispatch:
defaults:
run:
working-directory: opencode/dev-plugin-test
jobs:
static:
name: static (Tier 1)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.12"
- run: pip install -r requirements.txt
- run: pytest -m static -ra
db:
name: db (Tier 2)
runs-on: ubuntu-latest
if: github.event_name == 'pull_request' || github.event_name == 'push'
services:
mariadb:
image: mariadb:11.8
env:
MARIADB_ROOT_PASSWORD: test
ports:
- 3306:3306
options: >-
--health-cmd="healthcheck.sh --connect --innodb_initialized"
--health-interval=3s --health-timeout=5s --health-retries=20
env:
MARIADB_HOST: 127.0.0.1
MARIADB_PORT: "3306"
MARIADB_USER: root
MARIADB_PASSWORD: test
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.12"
- run: pip install -r requirements.txt
- run: pytest -m db -ra
evals:
name: evals (Tier 3)
runs-on: ubuntu-latest
if: github.event_name == 'schedule' || github.event_name == 'workflow_dispatch'
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.12"
- run: pip install -r requirements.txt
- run: pytest -m eval -ra
env:
ANTHROPIC_API_KEY: ${{ secrets.ANTHROPIC_API_KEY }}