Skip to content

Commit acd4025

Browse files
authored
Enable the integration tests for Anthropic (stacklok#743)
* Enable the integration tests for Anthropic Signed-off-by: Radoslav Dimitrov <[email protected]> * Add the secret for the anthropic key Signed-off-by: Radoslav Dimitrov <[email protected]> --------- Signed-off-by: Radoslav Dimitrov <[email protected]>
1 parent 2f5809c commit acd4025

File tree

4 files changed

+13
-9
lines changed

4 files changed

+13
-9
lines changed

.github/workflows/integration-tests.yml

+10
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@ on:
1212
copilot-key:
1313
description: 'The Copilot key to use for integration tests'
1414
required: true
15+
anthropic-key:
16+
description: 'The Anthropic key to use for integration tests'
17+
required: true
1518

1619
jobs:
1720
integration-tests:
@@ -136,6 +139,13 @@ jobs:
136139
run: |
137140
poetry run python tests/integration/integration_tests.py
138141
142+
- name: Run integration tests - Anthropic
143+
env:
144+
CODEGATE_PROVIDERS: "anthropic"
145+
ENV_ANTHROPIC_KEY: ${{ secrets.anthropic-key }}
146+
run: |
147+
poetry run python tests/integration/integration_tests.py
148+
139149
- name: Print the container logs (useful for debugging)
140150
if: always()
141151
run: |

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

+1
Original file line numberDiff line numberDiff line change
@@ -28,3 +28,4 @@ jobs:
2828
artifact-name: "codegate-image"
2929
secrets:
3030
copilot-key: ${{ secrets.INTEGRATION_TESTS_COPILOT_KEY }}
31+
anthropic-key: ${{ secrets.INTEGRATION_TESTS_ANTHROPIC_KEY }}

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

+1
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ jobs:
2727
artifact-name: "codegate-image"
2828
secrets:
2929
copilot-key: ${{ secrets.INTEGRATION_TESTS_COPILOT_KEY }}
30+
anthropic-key: ${{ secrets.INTEGRATION_TESTS_ANTHROPIC_KEY }}
3031
openapi:
3132
name: Generate the OpenAPI docs
3233
needs: [ci]

tests/integration/testcases.yaml

+1-9
Original file line numberDiff line numberDiff line change
@@ -217,15 +217,7 @@ testcases:
217217
"temperature":0
218218
}
219219
likes: |
220-
Hello! I'm CodeGate, your security-focused AI assistant. I can help you with:
221-
222-
- Software security analysis and reviews
223-
- Package security assessments
224-
- Secure coding practices and guidance
225-
- Security vulnerability analysis
226-
- Best practices for secure implementations
227-
228-
How can I assist you with your security needs today?
220+
Hello! How can I assist you today?
229221
230222
anthropic_fim:
231223
name: Anthropic FIM

0 commit comments

Comments
 (0)