Skip to content
Merged
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
2 changes: 2 additions & 0 deletions eng/ci/official-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,3 +48,5 @@ extends:
dependsOn: Build
jobs:
- template: /eng/templates/jobs/ci-tests.yml@self
parameters:
artifactFeed: 'internal/PythonSDK_Internal_TestPackages'
2 changes: 2 additions & 0 deletions eng/ci/public-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,3 +48,5 @@ extends:
dependsOn: Build
jobs:
- template: /eng/templates/jobs/ci-tests.yml@self
parameters:
artifactFeed: 'public/PythonSDK_PublicPackages'
4 changes: 4 additions & 0 deletions eng/templates/jobs/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@ jobs:
- 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
Expand Down
8 changes: 8 additions & 0 deletions eng/templates/jobs/ci-tests.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
parameters:
- name: artifactFeed
type: string

jobs:
- job: "TestPython"
displayName: "Run Python SDK Unit Tests"
Expand All @@ -23,6 +27,10 @@ jobs:
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
4 changes: 4 additions & 0 deletions eng/templates/official/jobs/build-artifacts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@ jobs:
- bash: |
python --version
displayName: 'Check python version'
- task: PipAuthenticate@1
displayName: 'Pip Authenticate'
inputs:
artifactFeeds: 'internal/PythonSDK_Internal_TestPackages'
- bash: |
python -m pip install -U pip
python -m pip install build
Expand Down
4 changes: 4 additions & 0 deletions eng/templates/official/jobs/publish-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -239,6 +239,10 @@ jobs:
displayName: 'Use Python 3.11'
inputs:
versionSpec: 3.11
- task: PipAuthenticate@1
displayName: 'Pip Authenticate'
inputs:
artifactFeeds: internal/PythonSDK_Internal_TestPackages
- pwsh: |
$newLibraryVersion = "${{ parameters.libraryVersion }}"
$pypiToken = "$(PypiToken)"
Expand Down
Loading