Skip to content
This repository was archived by the owner on Jun 5, 2025. It is now read-only.

Enable the integration tests for openrouter #1016

Merged
merged 3 commits into from
Feb 11, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions .github/workflows/integration-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,9 @@ on:
anthropic-key:
description: 'The Anthropic key to use for integration tests'
required: true

openrouter-key:
description: 'The Openrouter key to use for integration tests'
required: true
jobs:
integration-tests:
name: Test
Expand All @@ -24,11 +26,12 @@ jobs:
fail-fast: false # Continue running other tests if one fails
matrix:
python-version: [ "3.12" ]
test-provider: [ "copilot", "openai", "anthropic", "ollama", "vllm", "llamacpp" ]
test-provider: [ "copilot", "openai", "anthropic", "ollama", "vllm", "llamacpp", "openrouter" ]
env:
ENV_COPILOT_KEY: ${{ secrets.copilot-key }}
ENV_OPENAI_KEY: ${{ secrets.copilot-key }} # We use the same key for OpenAI as the Copilot tests
ENV_ANTHROPIC_KEY: ${{ secrets.anthropic-key }}
ENV_OPENROUTER_KEY: ${{ secrets.openrouter-key }}
CA_CERT_FILE: "/home/runner/work/codegate/codegate/codegate_volume/certs/ca.crt"
CODEGATE_CONTAINER_NAME: "codegate"
CODEGATE_MOUNT_PATH_CERT_FILE: "/app/codegate_volume/certs/ca.crt"
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/run-on-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,4 @@ jobs:
secrets:
copilot-key: ${{ secrets.INTEGRATION_TESTS_COPILOT_KEY }}
anthropic-key: ${{ secrets.INTEGRATION_TESTS_ANTHROPIC_KEY }}
openrouter-key: ${{ secrets.INTEGRATION_TESTS_OPENROUTER_KEY }}
1 change: 1 addition & 0 deletions .github/workflows/run-on-push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ jobs:
secrets:
copilot-key: ${{ secrets.INTEGRATION_TESTS_COPILOT_KEY }}
anthropic-key: ${{ secrets.INTEGRATION_TESTS_ANTHROPIC_KEY }}
openrouter-key: ${{ secrets.INTEGRATION_TESTS_OPENROUTER_KEY }}
openapi:
name: Generate the OpenAPI docs
needs: [ci]
Expand Down