Skip to content

Commit 8d798d5

Browse files
committed
install docker dependencies
1 parent 693fdfc commit 8d798d5

File tree

7 files changed

+77
-3
lines changed

7 files changed

+77
-3
lines changed

.github/workflows/ci_docker_con_workflow.yml

+4
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,10 @@ jobs:
3030
- name: Install dependencies
3131
run: |
3232
python -m pip install -U -e .[dev]
33+
python -m pip install --pre -U -e .[test-http-v2]
34+
if [[ "${{ matrix.python-version }}" != "3.8" ]]; then
35+
python -m pip install --pre -U -e .[test-deferred-bindings]
36+
fi
3337
python setup.py build
3438
- name: Running 3.8 Tests
3539
if: matrix.python-version == 3.8

.github/workflows/ci_docker_ded_workflow.yml

+4
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,10 @@ jobs:
3030
- name: Install dependencies
3131
run: |
3232
python -m pip install -U -e .[dev]
33+
python -m pip install --pre -U -e .[test-http-v2]
34+
if [[ "${{ matrix.python-version }}" != "3.8" ]]; then
35+
python -m pip install --pre -U -e .[test-deferred-bindings]
36+
fi
3337
python setup.py build
3438
- name: Running 3.8 Tests
3539
if: matrix.python-version == 3.8

eng/templates/official/jobs/build-artifacts.yml

+51
Original file line numberDiff line numberDiff line change
@@ -73,3 +73,54 @@ jobs:
7373
pythonVersion: "$(pythonVersion)"
7474
workerPath: "$(workerPath)"
7575
artifactName: "$(pythonVersion)_OSX_ARM64"
76+
- bash: |
77+
echo "Releasing from $BUILD_SOURCEBRANCHNAME"
78+
sudo apt-get install -y jq
79+
80+
if [[ $BUILD_SOURCEBRANCHNAME = 4\.* ]]
81+
then
82+
echo "Generating V4 Release Package for $BUILD_SOURCEBRANCHNAME"
83+
NUSPEC="pack\Microsoft.Azure.Functions.V4.PythonWorker.nuspec"
84+
WKVERSION="$BUILD_SOURCEBRANCHNAME"
85+
elif [[ $BUILD_SOURCEBRANCHNAME = dev ]]
86+
then
87+
echo "Generating V4 Integration Test Package for $BUILD_SOURCEBRANCHNAME"
88+
VERSION=$(cat azure_functions_worker/version.py | tail -1 | cut -d' ' -f3 | sed "s/'//g")
89+
NUSPEC="pack\Microsoft.Azure.Functions.V4.PythonWorker.nuspec"
90+
WKVERSION="$VERSION-$(patchBuildNumberForDev)"
91+
else
92+
# this is only to test nuget related workflow because we are setting nuspec here
93+
echo "Generating Integration Test Package for $BUILD_SOURCEBRANCHNAME for testing purpose"
94+
LATEST_TAG=$(curl https://api.github.com/repos/Azure/azure-functions-python-worker/tags -s | jq '.[0].name' | sed 's/\"//g' | cut -d'.' -f-2)
95+
NUSPEC="pack\Microsoft.Azure.Functions.V4.PythonWorker.nuspec"
96+
# Only required for Integration Test. Version number contains date (e.g. 3.1.2.20211028-dev)
97+
WKVERSION="3.$LATEST_TAG-$(BUILD_BUILDID)-TEST"
98+
echo "No Matching Release Tag For $BUILD_SOURCEBRANCH"
99+
fi
100+
101+
echo "##vso[task.setvariable variable=nuspec_path]$NUSPEC"
102+
echo "##vso[task.setvariable variable=worker_version]$WKVERSION"
103+
displayName: "Generate Worker NuGet Package for Release $BUILD_SOURCEBRANCHNAME"
104+
- task: DownloadBuildArtifacts@0
105+
inputs:
106+
buildType: 'current'
107+
downloadType: 'specific'
108+
downloadPath: '$(Build.SourcesDirectory)'
109+
- task: ManifestGeneratorTask@0
110+
displayName: 'SBOM Generation Task'
111+
inputs:
112+
BuildDropPath: '$(Build.ArtifactStagingDirectory)'
113+
BuildComponentPath: '$(Build.SourcesDirectory)'
114+
Verbosity: 'Verbose'
115+
- task: CopyFiles@2
116+
inputs:
117+
SourceFolder: '$(Build.ArtifactStagingDirectory)'
118+
Contents: '**'
119+
TargetFolder: '$(Build.SourcesDirectory)'
120+
- task: NuGetCommand@2
121+
inputs:
122+
command: pack
123+
packagesToPack: '$(nuspec_path)'
124+
packDestination: $(Build.ArtifactStagingDirectory)
125+
versioningScheme: 'byEnvVar'
126+
versionEnvVar: WORKER_VERSION

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

+5-1
Original file line numberDiff line numberDiff line change
@@ -52,10 +52,14 @@ jobs:
5252
versionSpec: $(PYTHON_VERSION)
5353
- bash: |
5454
python -m pip install -U -e .[dev]
55+
python -m pip install --pre -U -e .[test-http-v2]
56+
if [[ $(PYTHON_VERSION) != "3.8" ]]; then
57+
python -m pip install --pre -U -e .[test-deferred-bindings]
58+
fi
5559
python setup.py build
5660
displayName: 'Install dependencies'
5761
- bash: |
58-
python -m pytest --reruns 4 -vv --instafail tests/endtoend
62+
python -m pytest --reruns 4 -vv --instafail tests/endtoend tests/extension_tests/deferred_bindings_tests
5963
env:
6064
CONSUMPTION_DOCKER_TEST: "true"
6165
AzureWebJobsStorage: $(STORAGE_CONNECTION)

eng/templates/official/jobs/ci-custom-image-tests.yml

+7-1
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,16 @@ jobs:
1313
versionSpec: $(CUSTOM_PYTHON_VERSION)
1414
- bash: |
1515
python -m pip install -U -e .[dev]
16+
if [[ $(PYTHON_VERSION) != "3.7" ]]; then
17+
python -m pip install --pre -U -e .[test-http-v2]
18+
fi
19+
if [[ $(PYTHON_VERSION) != "3.7" && $(PYTHON_VERSION) != "3.8" ]]; then
20+
python -m pip install --pre -U -e .[test-deferred-bindings]
21+
fi
1622
python setup.py build
1723
displayName: 'Install dependencies'
1824
- bash: |
19-
python -m pytest --reruns 4 -vv --instafail tests/endtoend
25+
python -m pytest --reruns 4 -vv --instafail tests/endtoend tests/extension_tests/deferred_bindings_tests
2026
env:
2127
DEDICATED_DOCKER_TEST: $(CUSTOM_DED_IMAGE)
2228
CONSUMPTION_DOCKER_TEST: $(CUSTOM_CON_IMAGE)

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

+5-1
Original file line numberDiff line numberDiff line change
@@ -52,10 +52,14 @@ jobs:
5252
versionSpec: $(PYTHON_VERSION)
5353
- bash: |
5454
python -m pip install -U -e .[dev]
55+
python -m pip install --pre -U -e .[test-http-v2]
56+
if [[ $(PYTHON_VERSION) != "3.8" ]]; then
57+
python -m pip install --pre -U -e .[test-deferred-bindings]
58+
fi
5559
python setup.py build
5660
displayName: 'Install dependencies'
5761
- bash: |
58-
python -m pytest --reruns 4 -vv --instafail tests/endtoend
62+
python -m pytest --reruns 4 -vv --instafail tests/endtoend tests/extension_tests/deferred_bindings_tests
5963
env:
6064
DEDICATED_DOCKER_TEST: "true"
6165
AzureWebJobsStorage: $(STORAGE_CONNECTION)

pack/templates/win_env_gen.yml

+1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ steps:
77
- task: UsePythonVersion@0
88
inputs:
99
versionSpec: ${{ parameters.pythonVersion }}
10+
architecture: ${{ parameters.architecture }}
1011
addToPath: true
1112
- task: PowerShell@2
1213
inputs:

0 commit comments

Comments
 (0)