Skip to content

Commit

Permalink
Disable anthropic due to lack of availability, enable azure openai
Browse files Browse the repository at this point in the history
  • Loading branch information
Mark Pollack committed Nov 19, 2024
1 parent ca8334c commit 20f0477
Showing 1 changed file with 25 additions and 20 deletions.
45 changes: 25 additions & 20 deletions .github/workflows/spring-ai-integration-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,35 +38,40 @@ jobs:
with:
model-name: ollama

test-anthropic:
runs-on: ubuntu-latest
env:
ANTHROPIC_API_KEY: ${{ secrets.ANTHROPIC_API_KEY }}
steps:
- name: Check secret
id: secret_check
if: ${{ env.ANTHROPIC_API_KEY != '' }}
run: echo "Secret exists"

- uses: actions/checkout@v4
if: steps.secret_check.conclusion == 'success'

- name: Integration Test
if: steps.secret_check.conclusion == 'success'
uses: ./.github/actions/do-integration-test
with:
model-name: anthropic
# Anthrohpic is overloaded :(
#
# test-anthropic:
# runs-on: ubuntu-latest
# env:
# ANTHROPIC_API_KEY: ${{ secrets.ANTHROPIC_API_KEY }}
# steps:
# - name: Check secret
# id: secret_check
# if: ${{ env.ANTHROPIC_API_KEY != '' }}
# run: echo "Secret exists"
#
# - uses: actions/checkout@v4
# if: steps.secret_check.conclusion == 'success'
#
# - name: Integration Test
# if: steps.secret_check.conclusion == 'success'
# uses: ./.github/actions/do-integration-test
# with:
# model-name: anthropic

test-azure-openai:
runs-on: ubuntu-latest
env:
AZURE_OPENAI_API_KEY: ${{ secrets.AZURE_OPENAI_API_KEY }}
AZURE_OPENAI_ENDPOINT: ${{ secrets.AZURE_OPENAI_ENDPOINT }}
# TODO AZURE_OPENAI_TRANSCRIPTION_DEPLOYMENT_NAME needs to be added when we have a value
AZURE_OPENAI_TRANSCRIPTION_API_KEY: ${{ secrets.AZURE_OPENAI_TRANSCRIPTION_API_KEY }}
AZURE_OPENAI_TRANSCRIPTION_ENDPOINT: ${{ secrets.AZURE_OPENAI_TRANSCRIPTION_ENDPOINT }}
AZURE_OPENAI_IMAGE_API_KEY: ${{ secrets.AZURE_OPENAI_IMAGE_API_KEY }}
AZURE_OPENAI_IMAGE_ENDPOINT: ${{ secrets.AZURE_OPENAI_IMAGE_ENDPOINT }}
steps:
- name: Check secrets
id: secret_check
if: ${{ env.AZURE_OPENAI_API_KEY != '' && env.AZURE_OPENAI_ENDPOINT != '' }}
if: ${{ env.AZURE_OPENAI_API_KEY != '' && env.AZURE_OPENAI_ENDPOINT != '' && env.AZURE_OPENAI_TRANSCRIPTION_API_KEY != '' && env.AZURE_OPENAI_TRANSCRIPTION_ENDPOINT != '' && env.AZURE_OPENAI_IMAGE_API_KEY != '' && env.AZURE_OPENAI_IMAGE_ENDPOINT != '' }}
run: echo "Secrets exist"

- uses: actions/checkout@v4
Expand Down

0 comments on commit 20f0477

Please # to comment.