Skip to content

Commit

Permalink
Try UsePythonVersion to work around py2 removal (#33695)
Browse files Browse the repository at this point in the history
* Try UsePythonVersion to work around py2 removal; Additionally, use hosted pools for windows to deal with lack of python on path

* PR feedback (typos)
  • Loading branch information
MattGal authored Mar 17, 2020
1 parent 4fa8c1e commit 63c192d
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion eng/pipelines/coreclr/templates/format-job.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,11 @@ jobs:
name: ${{ format('format_{0}{1}_{2}', parameters.osGroup, parameters.osSubgroup, parameters.archType) }}
displayName: ${{ format('Formatting {0}{1} {2}', parameters.osGroup, parameters.osSubgroup, parameters.archType) }}
helixType: 'format'
pool: ${{ parameters.pool }}
${{ if eq(parameters.osGroup, 'Windows_NT') }}:
pool:
vmImage: 'windows-2019'
${{ if ne(parameters.osGroup, 'Windows_NT') }}:
pool: ${{ parameters.pool }}
variables: ${{ parameters.variables }}
condition: ${{ parameters.condition }}
steps:
Expand All @@ -38,6 +42,12 @@ jobs:
version: '3.x'
includePreviewVersions: true
installationPath: $(Agent.ToolsDirectory)/dotnet
- task: UsePythonVersion@0
inputs:
versionSpec: '3.x'
addToPath: true
architecture: 'x64'
condition: ${{ eq(parameters.osGroup, 'Windows_NT') }}
- task: PythonScript@0
displayName: Run tests/scripts/format.py
inputs:
Expand Down

0 comments on commit 63c192d

Please sign in to comment.