1# Generated from xtask::workflows::run_unit_evals
2# Rebuild with `cargo xtask workflows`.
3name: run_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 }}
9 ZED_EVAL_TELEMETRY: '1'
10 MODEL_NAME: ${{ inputs.model_name }}
11on:
12 workflow_dispatch:
13 inputs:
14 model_name:
15 description: model_name
16 required: true
17 type: string
18 commit_sha:
19 description: commit_sha
20 required: true
21 type: string
22jobs:
23 run_unit_evals:
24 runs-on: namespace-profile-16x32-ubuntu-2204
25 steps:
26 - name: steps::checkout_repo
27 uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
28 with:
29 clean: false
30 - name: steps::setup_cargo_config
31 run: |
32 mkdir -p ./../.cargo
33 cp ./.cargo/ci-config.toml ./../.cargo/config.toml
34 shell: bash -euxo pipefail {0}
35 - name: steps::cache_rust_dependencies_namespace
36 uses: namespacelabs/nscloud-cache-action@v1
37 with:
38 cache: rust
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 UNIT_EVAL_COMMIT: ${{ inputs.commit_sha }}
62 - name: steps::cleanup_cargo_config
63 if: always()
64 run: |
65 rm -rf ./../.cargo
66 shell: bash -euxo pipefail {0}
67concurrency:
68 group: ${{ github.workflow }}-${{ github.ref_name }}-${{ github.run_id }}
69 cancel-in-progress: true