1# Generated from xtask::workflows::run_cron_unit_evals
2# Rebuild with `cargo xtask workflows`.
3name: run_cron_unit_evals
4env:
5 CARGO_TERM_COLOR: always
6 CARGO_INCREMENTAL: '0'
7 RUST_BACKTRACE: '1'
8 ZED_CLIENT_CHECKSUM_SEED: ${{ secrets.ZED_CLIENT_CHECKSUM_SEED }}
9on:
10 schedule:
11 - cron: 47 1 * * 2
12 workflow_dispatch: {}
13jobs:
14 cron_unit_evals:
15 runs-on: namespace-profile-16x32-ubuntu-2204
16 strategy:
17 matrix:
18 model:
19 - anthropic/claude-sonnet-4-5-latest
20 - anthropic/claude-opus-4-5-latest
21 - google/gemini-3-pro
22 - openai/gpt-5
23 fail-fast: false
24 steps:
25 - name: steps::checkout_repo
26 uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
27 with:
28 clean: false
29 - name: steps::setup_cargo_config
30 run: |
31 mkdir -p ./../.cargo
32 cp ./.cargo/ci-config.toml ./../.cargo/config.toml
33 shell: bash -euxo pipefail {0}
34 - name: steps::cache_rust_dependencies_namespace
35 uses: namespacelabs/nscloud-cache-action@v1
36 with:
37 cache: rust
38 path: ~/.rustup
39 - name: steps::setup_linux
40 run: ./script/linux
41 shell: bash -euxo pipefail {0}
42 - name: steps::install_mold
43 run: ./script/install-mold
44 shell: bash -euxo pipefail {0}
45 - name: steps::download_wasi_sdk
46 run: ./script/download-wasi-sdk
47 shell: bash -euxo pipefail {0}
48 - name: steps::cargo_install_nextest
49 uses: taiki-e/install-action@nextest
50 - name: steps::clear_target_dir_if_large
51 run: ./script/clear-target-dir-if-larger-than 250
52 shell: bash -euxo pipefail {0}
53 - name: ./script/run-unit-evals
54 run: ./script/run-unit-evals
55 shell: bash -euxo pipefail {0}
56 env:
57 ANTHROPIC_API_KEY: ${{ secrets.ANTHROPIC_API_KEY }}
58 OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
59 GOOGLE_AI_API_KEY: ${{ secrets.GOOGLE_AI_API_KEY }}
60 GOOGLE_CLOUD_PROJECT: ${{ secrets.GOOGLE_CLOUD_PROJECT }}
61 ZED_AGENT_MODEL: ${{ matrix.model }}
62 - name: steps::cleanup_cargo_config
63 if: always()
64 run: |
65 rm -rf ./../.cargo
66 shell: bash -euxo pipefail {0}
67 - name: run_agent_evals::cron_unit_evals::send_failure_to_slack
68 if: ${{ failure() }}
69 uses: slackapi/slack-github-action@b0fa283ad8fea605de13dc3f449259339835fc52
70 with:
71 method: chat.postMessage
72 token: ${{ secrets.SLACK_APP_ZED_UNIT_EVALS_BOT_TOKEN }}
73 payload: |
74 channel: C04UDRNNJFQ
75 text: "Unit Evals Failed: https://github.com/zed-industries/zed/actions/runs/${{ github.run_id }}"
76concurrency:
77 group: ${{ github.workflow }}-${{ github.ref_name }}-${{ github.ref_name == 'main' && github.sha || 'anysha' }}
78 cancel-in-progress: true