config-version.yml 646 Bytes
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
parameters:
- name: platform
  type: string

steps:
- task: UsePythonVersion@0
  inputs:
    versionSpec: 3.9
  displayName: (latest) Configure Python version
  condition: and(succeeded(), not(contains('${{ parameters.platform }}', 'legacy')))

- task: UsePythonVersion@0
  inputs:
    versionSpec: 3.7
  displayName: (legacy) Configure Python version
  condition: and(succeeded(), contains('${{ parameters.platform }}', 'legacy'))

- task: NodeTool@0
  inputs:
20
    versionSpec: 16.13.2
21
22
23
  displayName: Configure Node.js version

- script: |
liuzhe-lz's avatar
liuzhe-lz committed
24
    python -m pip install pip==22.0.4 setuptools==62.1.0 wheel==0.37.1
25
  displayName: Install PyPA tools