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 - 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 - name: steps::install_mold
42 run: ./script/install-mold
43 - name: steps::download_wasi_sdk
44 run: ./script/download-wasi-sdk
45 - name: steps::cargo_install_nextest
46 uses: taiki-e/install-action@nextest
47 - name: steps::clear_target_dir_if_large
48 run: ./script/clear-target-dir-if-larger-than 250
49 - name: ./script/run-unit-evals
50 run: ./script/run-unit-evals
51 env:
52 ANTHROPIC_API_KEY: ${{ secrets.ANTHROPIC_API_KEY }}
53 OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
54 GOOGLE_AI_API_KEY: ${{ secrets.GOOGLE_AI_API_KEY }}
55 GOOGLE_CLOUD_PROJECT: ${{ secrets.GOOGLE_CLOUD_PROJECT }}
56 UNIT_EVAL_COMMIT: ${{ inputs.commit_sha }}
57 - name: steps::cleanup_cargo_config
58 if: always()
59 run: |
60 rm -rf ./../.cargo
61concurrency:
62 group: ${{ github.workflow }}-${{ github.ref_name }}-${{ github.run_id }}
63 cancel-in-progress: true
64defaults:
65 run:
66 shell: bash -euxo pipefail {0}