Skip to content

Commit 3451b20

Browse files
author
Victoria Hall
committed
sync with ADO changes
1 parent fd39060 commit 3451b20

File tree

1 file changed

+60
-0
lines changed

1 file changed

+60
-0
lines changed

eng/templates/official/jobs/ci-e2e-tests.yml

+60
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,66 @@ jobs:
7979
python setup.py extension
8080
mkdir logs
8181
displayName: 'Install dependencies and the worker'
82+
condition: and(eq(variables['USETESTPYTHONSDK'], false), eq(variables['USETESTPYTHONEXTENSIONS'], false))
83+
- task: DownloadPipelineArtifact@2
84+
displayName: 'Download Python SDK Artifact'
85+
inputs:
86+
buildType: specific
87+
artifactName: 'azure-functions'
88+
project: '3f99e810-c336-441f-8892-84983093ad7f'
89+
definition: 679
90+
buildVersionToDownload: specific
91+
pipelineId: 170384
92+
targetPath: '$(Pipeline.Workspace)/PythonSdkArtifact'
93+
condition: eq(variables['USETESTPYTHONSDK'], true)
94+
- bash: |
95+
python -m pip install --upgrade pip
96+
python -m pip install -e $(Pipeline.Workspace)/PythonSdkArtifact
97+
python -m pip install -U -e .[dev]
98+
99+
if [[ $(PYTHON_VERSION) != "3.7" ]]; then
100+
python -m pip install --pre -U -e .[test-http-v2]
101+
fi
102+
if [[ $(PYTHON_VERSION) != "3.7" && $(PYTHON_VERSION) != "3.8" ]]; then
103+
python -m pip install --pre -U -e .[test-deferred-bindings]
104+
fi
105+
106+
python setup.py build
107+
python setup.py webhost --branch-name=dev
108+
python setup.py extension
109+
mkdir logs
110+
displayName: 'Install test python sdk, dependencies and the worker'
111+
condition: eq(variables['USETESTPYTHONSDK'], true)
112+
- task: DownloadPipelineArtifact@2
113+
displayName: 'Download Python Extension Artifact'
114+
inputs:
115+
buildType: specific
116+
artifactName: $(PYTHONEXTENSIONNAME)
117+
project: '3f99e810-c336-441f-8892-84983093ad7f'
118+
definition: 798
119+
buildVersionToDownload: specific
120+
pipelineId: 170439
121+
targetPath: '$(Pipeline.Workspace)/PythonExtensionArtifact'
122+
condition: eq(variables['USETESTPYTHONEXTENSIONS'], true)
123+
- bash: |
124+
python -m pip install --upgrade pip
125+
python -m pip install -U -e .[dev]
126+
127+
if [[ $(PYTHON_VERSION) != "3.7" ]]; then
128+
python -m pip install -e $(Pipeline.Workspace)/PythonExtensionArtifact
129+
python -m pip install --pre -U -e .[test-http-v2]
130+
fi
131+
if [[ $(PYTHON_VERSION) != "3.7" && $(PYTHON_VERSION) != "3.8" ]]; then
132+
python -m pip install -e $(Pipeline.Workspace)/PythonExtensionArtifact
133+
python -m pip install --pre -U -e .[test-deferred-bindings]
134+
fi
135+
136+
python setup.py build
137+
python setup.py webhost --branch-name=dev
138+
python setup.py extension
139+
mkdir logs
140+
displayName: 'Install test python extension, dependencies and the worker'
141+
condition: eq(variables['USETESTPYTHONEXTENSIONS'], true)
82142
- bash: |
83143
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
84144
env:

0 commit comments

Comments
 (0)