Skip to content

Commit 02b4826

Browse files
committed
Create nightly evals on github action
1 parent 0bd92b5 commit 02b4826

File tree

2 files changed

+54
-1
lines changed

2 files changed

+54
-1
lines changed

.github/workflows/evals.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ jobs:
6464
6565
- name: Run evals
6666
if: ${{ steps.check_commit.outputs.should_run_evals == 'true' }}
67-
run: cd evals && bun run-eval-set --concurrency 1 --email --title "Git Eval (${{ github.sha }} ${{ github.event.head_commit.message }}})"
67+
run: cd evals && bun run-eval-set --concurrency 10 --email --title "Git Eval (${{ github.sha }} ${{ github.event.head_commit.message }}})"
6868

6969
- name: Workflow completed
7070
run: echo "Evals workflow completed successfully"
Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
name: Nightly Evals
2+
3+
on:
4+
schedule:
5+
# Run every night at 1:00 AM PT (9:00 AM UTC)
6+
- cron: '0 9 * * *'
7+
workflow_dispatch: # Allow manual triggering
8+
9+
jobs:
10+
run-nightly-evals:
11+
runs-on: ubuntu-latest
12+
timeout-minutes: 360
13+
steps:
14+
- name: Checkout repository
15+
uses: actions/checkout@v3
16+
17+
- name: Set up Bun
18+
uses: oven-sh/setup-bun@v2
19+
with:
20+
bun-version: '1.2.12'
21+
22+
- name: Cache dependencies
23+
uses: actions/cache@v3
24+
with:
25+
path: |
26+
node_modules
27+
*/node_modules
28+
packages/*/node_modules
29+
key: ${{ runner.os }}-deps-${{ hashFiles('**/bun.lockb') }}
30+
restore-keys: |
31+
${{ runner.os }}-deps-
32+
33+
- name: Install dependencies
34+
run: bun install --frozen-lockfile
35+
36+
- name: Set environment variables
37+
env:
38+
SECRETS_CONTEXT: ${{ toJSON(secrets) }}
39+
run: |
40+
VAR_NAMES=$(node scripts/generate-ci-env.js)
41+
echo "$SECRETS_CONTEXT" | jq -r --argjson vars "$VAR_NAMES" '
42+
to_entries | .[] | select(.key as $k | $vars | index($k)) | .key + "=" + .value
43+
' >> $GITHUB_ENV
44+
echo "CODEBUFF_GITHUB_ACTIONS=true" >> $GITHUB_ENV
45+
echo "NEXT_PUBLIC_CB_ENVIRONMENT=test" >> $GITHUB_ENV
46+
echo "NEXT_PUBLIC_INFISICAL_UP=true" >> $GITHUB_ENV
47+
echo "CODEBUFF_GITHUB_TOKEN=${{ secrets.CODEBUFF_GITHUB_TOKEN }}" >> $GITHUB_ENV
48+
49+
- name: Run nightly evals
50+
run: cd evals && bun run-eval-set --concurrency 10 --email --title "Nightly Eval Run ($(date '+%Y-%m-%d'))"
51+
52+
- name: Workflow completed
53+
run: echo "Nightly evals workflow completed successfully"

0 commit comments

Comments
 (0)