Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test: dev library testing based on branch name or variable #1538

Merged
merged 13 commits into from
Jul 30, 2024
8 changes: 4 additions & 4 deletions eng/templates/official/jobs/ci-e2e-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ jobs:
definition: 679
buildVersionToDownload: latest
targetPath: '$(Pipeline.Workspace)/PythonSdkArtifact'
condition: eq(variables['Build.SourceBranch'], 'refs/heads/sdk/*')
condition: or(eq(variables['Build.SourceBranch'], 'refs/heads/sdk/*'), eq(variables['USETESTPYTHONSDK'], true))
- bash: |
python -m pip install --upgrade pip
python -m pip install -e $(Pipeline.Workspace)/PythonSdkArtifact
Expand All @@ -107,7 +107,7 @@ jobs:
python -m invoke -c test_setup webhost --branch-name=dev
python -m invoke -c test_setup extensions
displayName: 'Install test python sdk, dependencies and the worker'
condition: eq(variables['Build.SourceBranch'], 'refs/heads/sdk/*')
condition: or(eq(variables['Build.SourceBranch'], 'refs/heads/sdk/*'), eq(variables['USETESTPYTHONSDK'], true))
- task: DownloadPipelineArtifact@2
displayName: 'Download Python Extension Artifact'
inputs:
Expand All @@ -117,7 +117,7 @@ jobs:
definition: 798
buildVersionToDownload: latest
targetPath: '$(Pipeline.Workspace)/PythonExtensionArtifact'
condition: eq(variables['Build.SourceBranch'], 'refs/heads/extensions/*')
condition: or(eq(variables['Build.SourceBranch'], 'refs/heads/extensions/*'), eq(variables['USETESTPYTHONEXTENSIONS'], true))
- bash: |
python -m pip install --upgrade pip

Expand All @@ -137,7 +137,7 @@ jobs:
python -m invoke -c test_setup webhost --branch-name=dev
python -m invoke -c test_setup extensions
displayName: 'Install test python extension, dependencies and the worker'
condition: eq(variables['Build.SourceBranch'], 'refs/heads/extensions/*')
condition: or(eq(variables['Build.SourceBranch'], 'refs/heads/extensions/*'), eq(variables['USETESTPYTHONEXTENSIONS'], true))
- bash: |
python -m pytest -q -n auto --dist loadfile --reruns 4 --cov=./azure_functions_worker --cov-report xml --cov-branch --cov-append tests/endtoend tests/extension_tests/deferred_bindings_tests tests/extension_tests/http_v2_tests
env:
Expand Down
Loading