fix: use venv instead of --system for TB workflow
Ubuntu runners have externally-managed Python that rejects --system installs. 🤖 Generated with [Letta Code](https://letta.com) Co-Authored-By: Letta Code <noreply@letta.com>
This commit is contained in:
11
.github/workflows/terminal-bench-regression.yml
vendored
11
.github/workflows/terminal-bench-regression.yml
vendored
@@ -27,8 +27,11 @@ jobs:
|
|||||||
- name: Setup Python + uv
|
- name: Setup Python + uv
|
||||||
uses: astral-sh/setup-uv@v6
|
uses: astral-sh/setup-uv@v6
|
||||||
|
|
||||||
- name: Install Harbor
|
- name: Create venv and install deps
|
||||||
run: uv pip install --system "harbor>=0.1.45" "litellm>=1.0.0"
|
run: |
|
||||||
|
uv venv .venv
|
||||||
|
source .venv/bin/activate
|
||||||
|
uv pip install "harbor>=0.1.45" "litellm>=1.0.0"
|
||||||
|
|
||||||
- name: Configure Modal
|
- name: Configure Modal
|
||||||
env:
|
env:
|
||||||
@@ -44,6 +47,8 @@ jobs:
|
|||||||
ANTHROPIC_API_KEY: ${{ secrets.ANTHROPIC_API_KEY }}
|
ANTHROPIC_API_KEY: ${{ secrets.ANTHROPIC_API_KEY }}
|
||||||
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
|
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
|
||||||
run: |
|
run: |
|
||||||
|
source .venv/bin/activate
|
||||||
|
|
||||||
# Build --task-name flags from regression-tasks.txt
|
# Build --task-name flags from regression-tasks.txt
|
||||||
TASK_FLAGS=""
|
TASK_FLAGS=""
|
||||||
while IFS= read -r task; do
|
while IFS= read -r task; do
|
||||||
@@ -93,7 +98,7 @@ jobs:
|
|||||||
GITHUB_RUN_ID: ${{ github.run_id }}
|
GITHUB_RUN_ID: ${{ github.run_id }}
|
||||||
GITHUB_SERVER_URL: ${{ github.server_url }}
|
GITHUB_SERVER_URL: ${{ github.server_url }}
|
||||||
run: |
|
run: |
|
||||||
python benchmarks/terminal_bench/report.py \
|
uv run python benchmarks/terminal_bench/report.py \
|
||||||
--results-dir results/ \
|
--results-dir results/ \
|
||||||
--baseline benchmarks/terminal_bench/baseline.json \
|
--baseline benchmarks/terminal_bench/baseline.json \
|
||||||
--repo "${{ github.repository }}"
|
--repo "${{ github.repository }}"
|
||||||
|
|||||||
Reference in New Issue
Block a user