Skip to content

Commit

Permalink
ci: enable azure tests
Browse files Browse the repository at this point in the history
  • Loading branch information
elliotzh committed Apr 22, 2024
1 parent b105ae1 commit 83abb12
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 14 deletions.
27 changes: 13 additions & 14 deletions .github/pipelines/promptflow-csharp-e2e-test-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,17 +31,16 @@ steps:
AZURE_OPENAI_ENDPOINT: $(azureOpenAiApiBase)
IS_IN_CI_PIPELINE: true

# enable this after we fix recording issue
#- task: PowerShell@2
# displayName: 'Run azure sdk cli tests'
# inputs:
# targetType: 'inline'
# script: |
# pytest tests/sdk_cli_azure_test/e2etests/test_csharp_sdk.py
# workingDirectory: $(Build.SourcesDirectory)/src/promptflow-azure
# env:
# CSHARP_TEST_PROJECTS_ROOT: $(Build.SourcesDirectory)/$(flowProjectRelativePath)
# AZURE_OPENAI_API_KEY: $(azureOpenAiApiKey)
# AZURE_OPENAI_ENDPOINT: $(azureOpenAiApiBase)
# PROMPT_FLOW_TEST_MODE: "replay"
# IS_IN_CI_PIPELINE: true
- task: PowerShell@2
displayName: 'Run azure sdk cli tests'
inputs:
targetType: 'inline'
script: |
pytest tests/sdk_cli_azure_test/e2etests/test_csharp_sdk.py
workingDirectory: $(Build.SourcesDirectory)/src/promptflow-azure
env:
CSHARP_TEST_PROJECTS_ROOT: $(Build.SourcesDirectory)/$(flowProjectRelativePath)
AZURE_OPENAI_API_KEY: $(azureOpenAiApiKey)
AZURE_OPENAI_ENDPOINT: $(azureOpenAiApiBase)
PROMPT_FLOW_TEST_MODE: "replay"
IS_IN_CI_PIPELINE: true
Original file line number Diff line number Diff line change
Expand Up @@ -78,4 +78,5 @@ class AzureMLResourceTypes:
"TestFlow",
"TestTelemetry",
"TestAzureCliPerf",
"TestCSharpSdk",
]

0 comments on commit 83abb12

Please sign in to comment.