Skip to content
Open
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
19 changes: 9 additions & 10 deletions eng/pipelines/templates/steps/build-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,16 +21,11 @@ parameters:

# Please use `$(TargetingString)` to refer to the python packages glob string. This variable is set from resolve-package-targeting.yml.
steps:
- template: /eng/pipelines/templates/steps/use-python-version.yml
parameters:
versionSpec: '${{ parameters.PythonVersion }}'

# Authenticate to Azure Artifacts feed immediately after checkout to prevent 401 errors
# Public feeds have upstream sources enabled and require authentication for passthrough to pypi.org
- template: /eng/pipelines/templates/steps/auth-dev-feed.yml
parameters:
DevFeedName: ${{ parameters.DevFeedName }}
EnableTwineAuth: false
- task: UsePythonVersion@0
displayName: "Use Python ${{ parameters.PythonVersion }}"
inputs:
versionSpec: ${{ parameters.PythonVersion }}
allowUnstable: true
Comment on lines +24 to +28

- template: /eng/pipelines/templates/steps/use-venv.yml

Expand Down Expand Up @@ -74,6 +69,8 @@ steps:
ScriptType: InlineScript
Inline: >-
$env:AZPYSDK_PIP_IMPL="uv";
$env:PIP_INDEX_URL="https://pypi.org/simple/";
$env:UV_DEFAULT_INDEX="https://pypi.org/simple/";
$account = (Get-AzContext).Account;
$env:AZURESUBSCRIPTION_CLIENT_ID = $account.Id;
$env:AZURESUBSCRIPTION_TENANT_ID = $account.Tenants;
Expand Down Expand Up @@ -101,6 +98,8 @@ steps:
- ${{ else }}:
- pwsh: |
$env:AZPYSDK_PIP_IMPL="uv"
$env:PIP_INDEX_URL="https://pypi.org/simple/"
$env:UV_DEFAULT_INDEX="https://pypi.org/simple/"
Write-Host (Get-Command python).Source

if ($env:TESTMARKARGUMENT) {
Expand Down
Loading