|
28 | 28 |
|
29 | 29 | # This is the list of parameters for this template and their default values. |
30 | 30 | parameters: |
31 | | - name: '' |
32 | | - vm_image: '' |
| 31 | + # name: '' |
| 32 | + # vm_image: '' |
33 | 33 | python_version: '' |
34 | 34 |
|
35 | | -jobs: |
36 | | - # The job will be named after the OS and Azure will suffix the strategy to make it unique |
37 | | - # so we'll have a job name "Windows Python 3.9" for example. What's a strategy? Strategies are the |
38 | | - # name of the keys under the strategy.matrix scope. So for each OS we'll have "<OS> Python 3.9" and |
39 | | - # "<OS> Python 3.10". |
40 | | -- job: |
41 | | - strategy: |
42 | | - parallel: 3 |
43 | | - displayName: ${{ parameters.name }} |
44 | | - pool: |
45 | | - vmImage: ${{ parameters.vm_image }} |
| 35 | +# jobs: |
| 36 | +# # The job will be named after the OS and Azure will suffix the strategy to make it unique |
| 37 | +# # so we'll have a job name "Windows Python 3.9" for example. What's a strategy? Strategies are the |
| 38 | +# # name of the keys under the strategy.matrix scope. So for each OS we'll have "<OS> Python 3.9" and |
| 39 | +# # "<OS> Python 3.10". |
| 40 | +# - job: |
| 41 | +# strategy: |
| 42 | +# parallel: 3 |
| 43 | +# displayName: ${{ parameters.name }} |
| 44 | +# pool: |
| 45 | +# vmImage: ${{ parameters.vm_image }} |
46 | 46 |
|
47 | | - variables: |
48 | | - group: sg-credentials |
| 47 | +# variables: |
| 48 | +# group: sg-credentials |
49 | 49 |
|
50 | | - # These are the steps that will be executed inside each job. |
51 | | - steps: |
52 | | - # Specifies which version of Python we want to use. That's where the strategy comes in. |
53 | | - # Each job will share this set of steps, but each of them will receive a different |
54 | | - # $(python.version) |
55 | | - # TODO: We should provide `githubToken` if we want to download a python release. |
56 | | - # Otherwise we may hit the GitHub anonymous download limit. |
57 | | - - task: UsePythonVersion@0 |
58 | | - inputs: |
59 | | - versionSpec: ${{ parameters.python_version }} |
60 | 50 |
|
61 | | - # Install all dependencies needed for running the tests. This command is good |
62 | | - # for all OSes |
63 | | - - task: Bash@3 |
64 | | - displayName: Install dependencies |
65 | | - inputs: |
66 | | - targetType: inline |
67 | | - script: | |
68 | | - python --version |
69 | | - python -c "import sys; print(sys.platform)" |
| 51 | +steps: |
| 52 | +# Specifies which version of Python we want to use. That's where the strategy comes in. |
| 53 | +# Each job will share this set of steps, but each of them will receive a different |
| 54 | +# $(python.version) |
| 55 | +# TODO: We should provide `githubToken` if we want to download a python release. |
| 56 | +# Otherwise we may hit the GitHub anonymous download limit. |
| 57 | +- task: UsePythonVersion@0 |
| 58 | + inputs: |
| 59 | + versionSpec: ${{ parameters.python_version }} |
| 60 | + |
| 61 | +# Install all dependencies needed for running the tests. This command is good |
| 62 | +# for all OSes |
| 63 | +- task: Bash@3 |
| 64 | + displayName: Install dependencies |
| 65 | + inputs: |
| 66 | + targetType: inline |
| 67 | + script: | |
| 68 | + python --version |
| 69 | + python -c "import sys; print(sys.platform)" |
70 | 70 |
|
71 | 71 | # pip install --upgrade pip |
72 | 72 | # pip install --upgrade setuptools wheel |
|
0 commit comments