Port provider tests to typescript (#8237)
Signed-off-by: Douwe Osinga <douwe@squareup.com> Co-authored-by: Douwe Osinga <douwe@squareup.com>
This commit is contained in:
@@ -110,7 +110,11 @@ jobs:
|
||||
- name: Install agentic providers
|
||||
run: npm install -g @anthropic-ai/claude-code @zed-industries/claude-agent-acp @zed-industries/codex-acp
|
||||
|
||||
- name: Run Smoke Tests with Provider Script
|
||||
- name: Install Node.js Dependencies
|
||||
run: source ../../bin/activate-hermit && pnpm install --frozen-lockfile
|
||||
working-directory: ui/desktop
|
||||
|
||||
- name: Run Smoke Tests (Normal Mode)
|
||||
env:
|
||||
ANTHROPIC_API_KEY: ${{ secrets.ANTHROPIC_API_KEY }}
|
||||
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
|
||||
@@ -127,12 +131,10 @@ jobs:
|
||||
SKIP_BUILD: 1
|
||||
SKIP_PROVIDERS: ${{ vars.SKIP_PROVIDERS || '' }}
|
||||
run: |
|
||||
# Ensure the HOME directory structure exists
|
||||
mkdir -p $HOME/.local/share/goose/sessions
|
||||
mkdir -p $HOME/.config/goose
|
||||
|
||||
# Run the provider test script (binary already built and downloaded)
|
||||
bash scripts/test_providers.sh
|
||||
source ../../bin/activate-hermit && pnpm run test:integration:providers
|
||||
working-directory: ui/desktop
|
||||
|
||||
- name: Set up Python
|
||||
uses: actions/setup-python@v5
|
||||
@@ -188,6 +190,10 @@ jobs:
|
||||
- name: Make Binary Executable
|
||||
run: chmod +x target/debug/goose
|
||||
|
||||
- name: Install Node.js Dependencies
|
||||
run: source ../../bin/activate-hermit && pnpm install --frozen-lockfile
|
||||
working-directory: ui/desktop
|
||||
|
||||
- name: Run Provider Tests (Code Execution Mode)
|
||||
env:
|
||||
ANTHROPIC_API_KEY: ${{ secrets.ANTHROPIC_API_KEY }}
|
||||
@@ -205,7 +211,8 @@ jobs:
|
||||
run: |
|
||||
mkdir -p $HOME/.local/share/goose/sessions
|
||||
mkdir -p $HOME/.config/goose
|
||||
bash scripts/test_providers_code_exec.sh
|
||||
source ../../bin/activate-hermit && pnpm run test:integration:providers-code-exec
|
||||
working-directory: ui/desktop
|
||||
|
||||
compaction-tests:
|
||||
name: Compaction Tests
|
||||
@@ -277,7 +284,8 @@ jobs:
|
||||
GOOSE_PROVIDER: anthropic
|
||||
GOOSE_MODEL: claude-sonnet-4-5-20250929
|
||||
SHELL: /bin/bash
|
||||
SKIP_BUILD: 1
|
||||
run: |
|
||||
echo 'export PATH=/some/fake/path:$PATH' >> $HOME/.bash_profile
|
||||
source ../../bin/activate-hermit && pnpm run test:integration:debug
|
||||
source ../../bin/activate-hermit && pnpm run test:integration:goosed
|
||||
working-directory: ui/desktop
|
||||
|
||||
Reference in New Issue
Block a user