Skip to content

Commit be9d22e

Browse files
authored
Run Agent Evals on a cron every 6 hours (#9382)
1 parent be433bc commit be9d22e

File tree

2 files changed

+44
-0
lines changed

2 files changed

+44
-0
lines changed

.github/workflows/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,4 @@ The following secrets must be defined on the project:
1515
| ----------------------------- | ------------------------------------------------------------------------------ |
1616
| `FBTOOLS_TARGET_PROJECT` | The project ID that should be used for integration tests |
1717
| `service_account_json_base64` | A base64-encoded service account JSON file with access to the selected project |
18+
| `GEMINI_API_KEY` | The Gemini API Key used for Agent Evals |

.github/workflows/agent-evals.yaml

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
name: Agent Evals
2+
3+
on:
4+
workflow_dispatch:
5+
schedule:
6+
# Run every 6 hours
7+
- cron: "0 */6 * * *"
8+
9+
permissions:
10+
contents: read
11+
12+
concurrency:
13+
group: agent-evals-${{ github.ref }}
14+
cancel-in-progress: true
15+
16+
env:
17+
CI: true
18+
19+
jobs:
20+
test:
21+
runs-on: ubuntu-latest
22+
strategy:
23+
matrix:
24+
node-version:
25+
- "20"
26+
env:
27+
GEMINI_API_KEY: ${{ secrets.GEMINI_API_KEY }}
28+
steps:
29+
- uses: actions/checkout@v4
30+
- uses: actions/setup-node@v3
31+
with:
32+
node-version: ${{ matrix.node-version }}
33+
cache: npm
34+
cache-dependency-path: npm-shrinkwrap.json
35+
36+
- run: npm i -g [email protected]
37+
- run: npm install -g @google/gemini-cli
38+
- run: npm ci
39+
- run: npm install
40+
working-directory: scripts/agent-evals
41+
- name: "Run agent-evals tests"
42+
run: npm run test
43+
working-directory: scripts/agent-evals

0 commit comments

Comments
 (0)