restructure if condition, enable azure openai tests
This commit is contained in:
@@ -43,36 +43,34 @@ jobs:
|
||||
runs-on: ubuntu-latest
|
||||
env:
|
||||
ANTHROPIC_API_KEY: ${{ secrets.ANTHROPIC_API_KEY }}
|
||||
if: ${{ env.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
|
||||
# if: ${{ secrets.AZURE_OPENAI_API_KEY != '' && secrets.AZURE_OPENAI_ENDPOINT != '' }}
|
||||
# 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
|
||||
# steps:
|
||||
# - name: Checkout the action
|
||||
# uses: actions/checkout@v4
|
||||
#
|
||||
# - name: Integration Test
|
||||
# uses: ./.github/actions/do-integration-test
|
||||
# with:
|
||||
# model-name: azure-openai
|
||||
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
|
||||
if: ${{ env.AZURE_OPENAI_API_KEY != '' && env.AZURE_OPENAI_ENDPOINT != '' }}
|
||||
steps:
|
||||
- name: Checkout the action
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Integration Test
|
||||
uses: ./.github/actions/do-integration-test
|
||||
with:
|
||||
model-name: azure-openai
|
||||
|
||||
# test-bedrock:
|
||||
# runs-on: ubuntu-latest
|
||||
|
||||
Reference in New Issue
Block a user