-
Notifications
You must be signed in to change notification settings - Fork 0
48 lines (40 loc) · 1.21 KB
/
Copy pathweekly-benchmark.yml
File metadata and controls
48 lines (40 loc) · 1.21 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
name: Weekly LLM Investment Benchmark
on:
workflow_dispatch:
schedule:
- cron: "17 8 * * 1"
permissions:
contents: write
models: read
jobs:
benchmark:
runs-on: ubuntu-latest
environment: prod
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GEMINI_API_KEY: ${{ secrets.GEMINI_API_KEY }}
GROQ_API_KEY: ${{ secrets.GROQ_API_KEY }}
MISTRAL_API_KEY: ${{ secrets.MISTRAL_API_KEY }}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version-file: go.mod
cache: true
- name: Test before run
run: go test ./...
- name: Run weekly benchmark
run: go run ./cmd/run
- name: Test after run
run: go test ./...
- name: Commit benchmark updates
run: |
if [ -z "$(git status --porcelain)" ]; then
echo "No benchmark updates to commit."
exit 0
fi
git config user.name "github-actions[bot]"
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
git add orders logs prices stats README.md llm100kbench.db
git commit -m "Update weekly LLM benchmark"
git push