Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 5 additions & 9 deletions eng/templates/jobs/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,23 +16,19 @@ jobs:
PYTHON_VERSION: '3.14'

steps:
- task: PipAuthenticate@1
displayName: 'Pip Authenticate'
inputs:
artifactFeeds: 'public/PythonSDK_PublicPackages'
onlyAddExtraIndex: false
- task: UsePythonVersion@0
inputs:
versionSpec: $(PYTHON_VERSION)
- bash: |
python --version
displayName: 'Check python version'
- task: PipAuthenticate@1
displayName: 'Pip Authenticate'
inputs:
artifactFeeds: 'public/PythonSDK_PublicPackages'
- bash: |
python -m pip install -U pip
python -m pip install build
python -m build
displayName: 'Build Python SDK for $(PYTHON_VERSION)'
- bash: |
pip install pip-audit
pip-audit .
displayName: 'Run vulnerability scan'
condition: ne(variables['PYTHON_VERSION'], '3.7')
9 changes: 5 additions & 4 deletions eng/templates/jobs/ci-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,17 +20,18 @@ jobs:
PYTHON_VERSION: '3.14'

steps:
- task: PipAuthenticate@1
displayName: 'Pip Authenticate'
inputs:
artifactFeeds: ${{ parameters.artifactFeed }}
onlyAddExtraIndex: false
- task: UsePythonVersion@0
inputs:
versionSpec: $(PYTHON_VERSION)
- bash: |
VERSION=$(python -c "import re; content = open('azure/functions/__init__.py').read(); match = re.search(r\"__version__ = '(\d+)\.(\d+)\.(\d+).*'\", content); print(match.group(1)) if match else '1'")
echo "##vso[task.setvariable variable=MAJOR_VERSION]$VERSION"
displayName: 'Detect package version'
- task: PipAuthenticate@1
displayName: 'Pip Authenticate'
inputs:
artifactFeeds: ${{ parameters.artifactFeed }}
- bash: |
PYTHON_MAJOR=$(echo $(PYTHON_VERSION) | cut -d. -f1)
PYTHON_MINOR=$(echo $(PYTHON_VERSION) | cut -d. -f2)
Expand Down
13 changes: 5 additions & 8 deletions eng/templates/official/jobs/build-artifacts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,22 +15,19 @@ jobs:
artifactName: "azure-functions"

steps:
- task: PipAuthenticate@1
displayName: 'Pip Authenticate'
inputs:
artifactFeeds: 'internal/PythonSDK_Internal_PublicPackages'
onlyAddExtraIndex: false
- task: UsePythonVersion@0
inputs:
versionSpec: "3.11"
- bash: |
python --version
displayName: 'Check python version'
- task: PipAuthenticate@1
displayName: 'Pip Authenticate'
inputs:
artifactFeeds: 'internal/PythonSDK_Internal_PublicPackages'
- bash: |
python -m pip install -U pip
python -m pip install build
python -m build
displayName: 'Build Python SDK'
- bash: |
pip install pip-audit
pip-audit .
displayName: 'Run vulnerability scan'
9 changes: 5 additions & 4 deletions eng/templates/official/release/build-artifacts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,11 @@ jobs:
artifactName: ${{ parameters.artifactName }}

steps:
- task: PipAuthenticate@1
displayName: 'Pip Authenticate'
inputs:
artifactFeeds: 'internal/PythonSDK_Internal_PublicPackages'
onlyAddExtraIndex: false
- ${{ if ne(parameters.libraryVersion, '') }}:
- checkout: none
- bash: |
Expand All @@ -62,10 +67,6 @@ jobs:
- bash: |
python --version
displayName: 'Check python version'
- task: PipAuthenticate@1
displayName: 'Pip Authenticate'
inputs:
artifactFeeds: 'internal/PythonSDK_Internal_PublicPackages'
- bash: |
python -m pip install -U pip
python -m pip install build
Expand Down
Loading