Skip to content
Merged
2 changes: 1 addition & 1 deletion eng/ci/core-tools-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ resources:
variables:
- template: /ci/variables/build.yml@eng
- template: /ci/variables/cfs.yml@eng

- group: python-integration-resources
extends:
template: v1/1ES.Unofficial.PipelineTemplate.yml@1es
parameters:
Expand Down
1 change: 1 addition & 0 deletions eng/ci/custom-image-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ resources:
variables:
- template: /ci/variables/build.yml@eng
- template: /ci/variables/cfs.yml@eng
- group: python-integration-resources

extends:
template: v1/1ES.Unofficial.PipelineTemplate.yml@1es
Expand Down
1 change: 1 addition & 0 deletions eng/ci/docker-consumption-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ resources:
variables:
- template: /ci/variables/build.yml@eng
- template: /ci/variables/cfs.yml@eng
- group: python-integration-resources

extends:
template: v1/1ES.Unofficial.PipelineTemplate.yml@1es
Expand Down
1 change: 1 addition & 0 deletions eng/ci/docker-dedicated-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ resources:
variables:
- template: /ci/variables/build.yml@eng
- template: /ci/variables/cfs.yml@eng
- group: python-integration-resources

extends:
template: v1/1ES.Unofficial.PipelineTemplate.yml@1es
Expand Down
1 change: 1 addition & 0 deletions eng/ci/integration-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ resources:
variables:
- template: /ci/variables/build.yml@eng
- template: /ci/variables/cfs.yml@eng
- group: python-integration-resources

extends:
template: v1/1ES.Unofficial.PipelineTemplate.yml@1es
Expand Down
1 change: 1 addition & 0 deletions eng/ci/official-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ resources:
variables:
- template: /ci/variables/build.yml@eng
- template: /ci/variables/cfs.yml@eng
- group: python-integration-resources

extends:
template: v1/1ES.Official.PipelineTemplate.yml@1es
Expand Down
6 changes: 3 additions & 3 deletions eng/templates/jobs/ci-unit-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,17 +26,17 @@ jobs:
- bash: |
python -m pip install --upgrade pip
python -m pip install -U azure-functions --pre
python -m pip install -U -e .[dev]

python -m pip install -U -e .[dev]
if [[ $(PYTHON_VERSION) != "3.7" ]]; then
python -m pip install --pre -U -e .[test-http-v2]
python -m pip install --pre -U -e .[test-http-v2]
fi

cd tests
python -m invoke -c test_setup build-protos
python -m invoke -c test_setup webhost --branch-name=dev
python -m invoke -c test_setup extensions
displayName: "Install dependencies"
displayName: 'Install dependencies'
- bash: |
python -m pytest -q -n auto --dist loadfile --reruns 4 --instafail --cov=./azure_functions_worker --cov-report xml --cov-branch tests/unittests
displayName: "Running $(PYTHON_VERSION) Unit Tests"
Expand Down
12 changes: 6 additions & 6 deletions eng/templates/official/jobs/ci-e2e-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ jobs:
python -m invoke -c test_setup webhost --branch-name=dev
python -m invoke -c test_setup extensions
displayName: 'Install dependencies and the worker'
condition: and(eq(variables['USETESTPYTHONSDK'], false), eq(variables['USETESTPYTHONEXTENSIONS'], false))
condition: and(ne(variables['Build.SourceBranch'], 'refs/heads/sdk/*'), ne(variables['Build.SourceBranch'], 'refs/heads/extensions/*'))
- task: DownloadPipelineArtifact@2
displayName: 'Download Python SDK Artifact'
inputs:
Expand All @@ -89,7 +89,7 @@ jobs:
definition: 679
buildVersionToDownload: latest
targetPath: '$(Pipeline.Workspace)/PythonSdkArtifact'
condition: eq(variables['USETESTPYTHONSDK'], true)
condition: eq(variables['Build.SourceBranch'], 'refs/heads/sdk/*')
- 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['USETESTPYTHONSDK'], true)
condition: eq(variables['Build.SourceBranch'], 'refs/heads/sdk/*')
- 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['USETESTPYTHONEXTENSIONS'], true)
condition: eq(variables['Build.SourceBranch'], 'refs/heads/extensions/*')
- 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['USETESTPYTHONEXTENSIONS'], true)
condition: eq(variables['Build.SourceBranch'], 'refs/heads/extensions/*')
- 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 All @@ -148,5 +148,5 @@ jobs:
AzureWebJobsSqlConnectionString: $(SQL_CONNECTION)
AzureWebJobsEventGridTopicUri: $(EVENTGRID_URI)
AzureWebJobsEventGridConnectionKey: $(EVENTGRID_CONNECTION)
USETESTPYTHONSDK: $(USETESTPYTHONSDK)
USETESTPYTHONSDK: eq(variables['Build.SourceBranch'], 'refs/heads/sdk/*')
displayName: "Running $(PYTHON_VERSION) Python E2E Tests"
5 changes: 0 additions & 5 deletions eng/templates/official/jobs/ci-lc-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,8 @@ jobs:
versionSpec: $(PYTHON_VERSION)
- bash: |
python -m pip install --upgrade pip
python -m pip install -U azure-functions --pre
python -m pip install -U -e .[dev]

if [[ $(PYTHON_VERSION) != "3.7" ]]; then
python -m pip install --pre -U -e .[test-http-v2]
fi

cd tests
python -m invoke -c test_setup build-protos
displayName: 'Install dependencies and the worker'
Expand Down