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

Commit d86a965

Browse files
authored
Enable the integration tests for openrouter (#1016)
1 parent 8cb658d commit d86a965

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

.github/workflows/integration-tests.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,9 @@ on:
1515
anthropic-key:
1616
description: 'The Anthropic key to use for integration tests'
1717
required: true
18-
18+
openrouter-key:
19+
description: 'The Openrouter key to use for integration tests'
20+
required: true
1921
jobs:
2022
integration-tests:
2123
name: Test
@@ -24,11 +26,12 @@ jobs:
2426
fail-fast: false # Continue running other tests if one fails
2527
matrix:
2628
python-version: [ "3.12" ]
27-
test-provider: [ "copilot", "openai", "anthropic", "ollama", "vllm", "llamacpp" ]
29+
test-provider: [ "copilot", "openai", "anthropic", "ollama", "vllm", "llamacpp", "openrouter" ]
2830
env:
2931
ENV_COPILOT_KEY: ${{ secrets.copilot-key }}
3032
ENV_OPENAI_KEY: ${{ secrets.copilot-key }} # We use the same key for OpenAI as the Copilot tests
3133
ENV_ANTHROPIC_KEY: ${{ secrets.anthropic-key }}
34+
ENV_OPENROUTER_KEY: ${{ secrets.openrouter-key }}
3235
CA_CERT_FILE: "/home/runner/work/codegate/codegate/codegate_volume/certs/ca.crt"
3336
CODEGATE_CONTAINER_NAME: "codegate"
3437
CODEGATE_MOUNT_PATH_CERT_FILE: "/app/codegate_volume/certs/ca.crt"

.github/workflows/run-on-pr.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,3 +28,4 @@ jobs:
2828
secrets:
2929
copilot-key: ${{ secrets.INTEGRATION_TESTS_COPILOT_KEY }}
3030
anthropic-key: ${{ secrets.INTEGRATION_TESTS_ANTHROPIC_KEY }}
31+
openrouter-key: ${{ secrets.INTEGRATION_TESTS_OPENROUTER_KEY }}

.github/workflows/run-on-push.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ jobs:
2727
secrets:
2828
copilot-key: ${{ secrets.INTEGRATION_TESTS_COPILOT_KEY }}
2929
anthropic-key: ${{ secrets.INTEGRATION_TESTS_ANTHROPIC_KEY }}
30+
openrouter-key: ${{ secrets.INTEGRATION_TESTS_OPENROUTER_KEY }}
3031
openapi:
3132
name: Generate the OpenAPI docs
3233
needs: [ci]

0 commit comments

Comments
 (0)