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 run: cargo install cargo-nextest --locked
50 shell: bash -euxo pipefail {0}
51 - name: steps::clear_target_dir_if_large
52 run: ./script/clear-target-dir-if-larger-than 250
53 shell: bash -euxo pipefail {0}
54 - name: ./script/run-unit-evals
55 run: ./script/run-unit-evals
56 shell: bash -euxo pipefail {0}
57 env:
58 ANTHROPIC_API_KEY: ${{ secrets.ANTHROPIC_API_KEY }}
59 OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
60 GOOGLE_AI_API_KEY: ${{ secrets.GOOGLE_AI_API_KEY }}
61 GOOGLE_CLOUD_PROJECT: ${{ secrets.GOOGLE_CLOUD_PROJECT }}
62 UNIT_EVAL_COMMIT: ${{ inputs.commit_sha }}
63 - name: steps::cleanup_cargo_config
64 if: always()
65 run: |
66 rm -rf ./../.cargo
67 shell: bash -euxo pipefail {0}
68concurrency:
69 group: ${{ github.workflow }}-${{ github.ref_name }}-${{ github.ref_name == 'main' && github.sha || 'anysha' }}
70 cancel-in-progress: true