run_unit_evals.yml

 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: steps::setup_sccache
50      run: ./script/setup-sccache
51      env:
52        R2_ACCOUNT_ID: ${{ secrets.R2_ACCOUNT_ID }}
53        R2_ACCESS_KEY_ID: ${{ secrets.R2_ACCESS_KEY_ID }}
54        R2_SECRET_ACCESS_KEY: ${{ secrets.R2_SECRET_ACCESS_KEY }}
55        SCCACHE_BUCKET: sccache-zed
56    - name: ./script/run-unit-evals
57      run: ./script/run-unit-evals
58      env:
59        ANTHROPIC_API_KEY: ${{ secrets.ANTHROPIC_API_KEY }}
60        OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
61        GOOGLE_AI_API_KEY: ${{ secrets.GOOGLE_AI_API_KEY }}
62        GOOGLE_CLOUD_PROJECT: ${{ secrets.GOOGLE_CLOUD_PROJECT }}
63        UNIT_EVAL_COMMIT: ${{ inputs.commit_sha }}
64    - name: steps::show_sccache_stats
65      run: sccache --show-stats || true
66    - name: steps::cleanup_cargo_config
67      if: always()
68      run: |
69        rm -rf ./../.cargo
70concurrency:
71  group: ${{ github.workflow }}-${{ github.ref_name }}-${{ github.run_id }}
72  cancel-in-progress: true
73defaults:
74  run:
75    shell: bash -euxo pipefail {0}