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
12 changes: 4 additions & 8 deletions eng/templates/jobs/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,14 @@ jobs:
EXTENSION_NAME: 'Connectors'

steps:
- task: UsePythonVersion@0
inputs:
versionSpec: '3.11'
- task: PipAuthenticate@1
displayName: 'Pip Authenticate'
inputs:
artifactFeeds: public/PythonExtensions_PublicPackages
onlyAddExtraIndex: false
- task: UsePythonVersion@0
inputs:
versionSpec: '3.11'
- bash: |
python --version
displayName: 'Check python version'
Expand All @@ -43,8 +44,3 @@ jobs:
cd $(EXTENSION_DIRECTORY)
python -m build
displayName: 'Build $(EXTENSION_NAME) Extension'
- bash: |
pip install pip-audit
cd $(EXTENSION_DIRECTORY)
pip-audit .
displayName: 'Run vulnerability scan'
12 changes: 4 additions & 8 deletions eng/templates/official/jobs/build-artifacts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,13 +33,14 @@ jobs:
artifactName: "$(EXTENSION_DIRECTORY)"

steps:
- task: UsePythonVersion@0
inputs:
versionSpec: '3.11'
- task: PipAuthenticate@1
displayName: 'Pip Authenticate'
inputs:
artifactFeeds: internal/PythonExtensions_Internal_PublicPackages
onlyAddExtraIndex: false
- task: UsePythonVersion@0
inputs:
versionSpec: '3.11'
- bash: |
python --version
displayName: 'Check python version'
Expand All @@ -49,8 +50,3 @@ jobs:
cd $(EXTENSION_DIRECTORY)
python -m build
displayName: 'Build $(EXTENSION_NAME) Extension'
- bash: |
pip install pip-audit
cd $(EXTENSION_DIRECTORY)
pip-audit .
displayName: 'Run vulnerability scan'
9 changes: 5 additions & 4 deletions eng/templates/official/jobs/publish-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,11 @@ jobs:
dependsOn: ['FinishWorkerPr']
displayName: 'PyPI Package'
steps:
- task: PipAuthenticate@1
displayName: 'Pip Authenticate'
inputs:
artifactFeeds: internal/PythonExtensions_Internal_PublicPackages
onlyAddExtraIndex: false
- task: DownloadPipelineArtifact@2
displayName: 'Download Python Extension release/.x.y.z Artifact'
inputs:
Expand All @@ -214,10 +219,6 @@ jobs:
displayName: 'Use Python 3.11'
inputs:
versionSpec: 3.11
- task: PipAuthenticate@1
displayName: 'Pip Authenticate'
inputs:
artifactFeeds: internal/PythonExtensions_Internal_PublicPackages
- pwsh: |
$newLibraryVersion = "$(NewLibraryVersion)"
$pypiToken = "$(PypiToken)"
Expand Down
49 changes: 28 additions & 21 deletions eng/templates/official/jobs/unit-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,14 @@ jobs:
matrix: ${{ parameters.python_versions }}
condition: always()
steps:
- task: UsePythonVersion@0
inputs:
versionSpec: $(PYTHON_VERSION)
- task: PipAuthenticate@1
displayName: 'Pip Authenticate'
inputs:
artifactFeeds: ${{ parameters.ArtifactFeed }}
onlyAddExtraIndex: false
- task: UsePythonVersion@0
inputs:
versionSpec: $(PYTHON_VERSION)
- bash: |
python -m pip install --upgrade pip
cd azurefunctions-extensions-base
Expand All @@ -51,13 +52,14 @@ jobs:
matrix: ${{ parameters.python_versions }}
condition: always()
steps:
- task: UsePythonVersion@0
inputs:
versionSpec: $(PYTHON_VERSION)
- task: PipAuthenticate@1
displayName: 'Pip Authenticate'
inputs:
artifactFeeds: ${{ parameters.ArtifactFeed }}
onlyAddExtraIndex: false
- task: UsePythonVersion@0
inputs:
versionSpec: $(PYTHON_VERSION)
- bash: |
python -m pip install --upgrade pip
cd azurefunctions-extensions-bindings-blob
Expand All @@ -82,13 +84,14 @@ jobs:
matrix: ${{ parameters.python_versions }}
condition: always()
steps:
- task: UsePythonVersion@0
inputs:
versionSpec: $(PYTHON_VERSION)
- task: PipAuthenticate@1
displayName: 'Pip Authenticate'
inputs:
artifactFeeds: ${{ parameters.ArtifactFeed }}
onlyAddExtraIndex: false
- task: UsePythonVersion@0
inputs:
versionSpec: $(PYTHON_VERSION)
- bash: |
python -m pip install --upgrade pip
cd azurefunctions-extensions-bindings-cosmosdb
Expand All @@ -108,13 +111,14 @@ jobs:
matrix: ${{ parameters.python_versions }}
condition: always()
steps:
- task: UsePythonVersion@0
inputs:
versionSpec: $(PYTHON_VERSION)
- task: PipAuthenticate@1
displayName: 'Pip Authenticate'
inputs:
artifactFeeds: ${{ parameters.ArtifactFeed }}
onlyAddExtraIndex: false
- task: UsePythonVersion@0
inputs:
versionSpec: $(PYTHON_VERSION)
- bash: |
python -m pip install --upgrade pip
cd azurefunctions-extensions-bindings-eventhub
Expand All @@ -131,13 +135,14 @@ jobs:
matrix: ${{ parameters.python_versions }}
condition: always()
steps:
- task: UsePythonVersion@0
inputs:
versionSpec: $(PYTHON_VERSION)
- task: PipAuthenticate@1
displayName: 'Pip Authenticate'
inputs:
artifactFeeds: ${{ parameters.ArtifactFeed }}
onlyAddExtraIndex: false
- task: UsePythonVersion@0
inputs:
versionSpec: $(PYTHON_VERSION)
- bash: |
python -m pip install --upgrade pip
cd azurefunctions-extensions-http-fastapi
Expand All @@ -154,13 +159,14 @@ jobs:
matrix: ${{ parameters.python_versions }}
condition: always()
steps:
- task: UsePythonVersion@0
inputs:
versionSpec: $(PYTHON_VERSION)
- task: PipAuthenticate@1
displayName: 'Pip Authenticate'
inputs:
artifactFeeds: ${{ parameters.ArtifactFeed }}
onlyAddExtraIndex: false
- task: UsePythonVersion@0
inputs:
versionSpec: $(PYTHON_VERSION)
- bash: |
python -m pip install --upgrade pip
cd azurefunctions-extensions-bindings-servicebus
Expand All @@ -177,13 +183,14 @@ jobs:
matrix: ${{ parameters.python_versions }}
condition: always()
steps:
- task: UsePythonVersion@0
inputs:
versionSpec: $(PYTHON_VERSION)
- task: PipAuthenticate@1
displayName: 'Pip Authenticate'
inputs:
artifactFeeds: ${{ parameters.ArtifactFeed }}
onlyAddExtraIndex: false
- task: UsePythonVersion@0
inputs:
versionSpec: $(PYTHON_VERSION)
- bash: |
python -m pip install --upgrade pip
cd azurefunctions-extensions-connectors
Expand Down
Loading