forked from openemr/openemr
-
Notifications
You must be signed in to change notification settings - Fork 0
60 lines (51 loc) · 1.79 KB
/
Copy pathagentforge-tier2.yml
File metadata and controls
60 lines (51 loc) · 1.79 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
##
# AgentForge Tier 2 (live LLM) evals.
#
# Excluded from PR runs because each pass spends real OpenAI/Anthropic tokens.
# Triggered nightly on the master branch and on demand via the Actions UI.
# The runner refuses to start unless a live provider key is present, so a
# fixture pass is never reported as live-provider proof.
name: AgentForge Tier 2 Live
on:
workflow_dispatch:
inputs:
provider:
description: 'Draft provider mode (openai or anthropic). Leave blank to auto-select from available secret.'
required: false
default: ''
type: choice
options:
- ''
- openai
- anthropic
schedule:
# Nightly at 07:30 UTC (00:30 PT). Pinned to master.
- cron: '30 7 * * *'
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: false
jobs:
tier2-live:
name: Tier 2 - Live LLM evals
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v6
- name: Setup PHP and Composer
uses: ./.github/actions/setup-php-composer
with:
php-version: '8.2'
- name: Run Tier 2 live evals
env:
AGENTFORGE_DRAFT_PROVIDER: ${{ github.event.inputs.provider }}
AGENTFORGE_OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
AGENTFORGE_ANTHROPIC_API_KEY: ${{ secrets.ANTHROPIC_API_KEY }}
run: php agent-forge/scripts/run-tier2-evals.php
- name: Append Tier 2 summary to GitHub Actions
if: ${{ !cancelled() }}
run: bash agent-forge/scripts/ci/append-eval-step-summary.sh "Tier 2 — Live LLM evals" "agent-forge/eval-results/tier2-live-*.json"
- name: Upload Tier 2 results
if: ${{ !cancelled() }}
uses: actions/upload-artifact@v7
with:
name: agentforge-tier2-results
path: agent-forge/eval-results/tier2-live-*.json