File tree Expand file tree Collapse file tree 5 files changed +26
-15
lines changed
Expand file tree Collapse file tree 5 files changed +26
-15
lines changed Original file line number Diff line number Diff line change @@ -12,16 +12,18 @@ steps:
1212 PATCH=$(curl -s https://api.github.com/repos/actions/python-versions/releases \
1313 | jq -r '[.[] | .tag_name | select(startswith("3.13"))] | .[]' \
1414 | sort -V | tail -n 1 | cut -d- -f1)
15+
16+ echo "##vso[task.setvariable variable=PY_VER]$PATCH"
1517 echo "Resolved latest python version: $PATCH"
1618 echo "##vso[task.setvariable variable=LD_LIBRARY_PATH;]/agent/_work/_tool/Python/${PATCH}/x64/lib/"
1719 displayName: 'Query and set python tool cache path'
1820
1921
2022 - task : UsePythonVersion@0
2123 name : UsePy
22- displayName : ' Use Python 3.13 '
24+ displayName : ' Use Python $(PY_VER) '
2325 inputs :
24- versionSpec : ' 3.13 '
26+ versionSpec : ' $(PY_VER) '
2527
2628 - bash : |
2729 echo "Checking the python version in use to set LD_LIBRARY_PATH"
Original file line number Diff line number Diff line change @@ -64,15 +64,18 @@ jobs:
6464 PATCH=$(curl -s https://api.github.com/repos/actions/python-versions/releases \
6565 | jq -r '[.[] | .tag_name | select(startswith("3.13"))] | .[]' \
6666 | sort -V | tail -n 1 | cut -d- -f1)
67+
68+ echo "##vso[task.setvariable variable=PY_VER]$PATCH"
6769 echo "Resolved latest python version: $PATCH"
6870 echo "##vso[task.setvariable variable=LD_LIBRARY_PATH;]/agent/_work/_tool/Python/${PATCH}/x64/lib/"
69- displayName: 'Query and set python tool cache path'
71+ displayName: 'Query and set python tool cache path'
72+
7073
7174 - task : UsePythonVersion@0
7275 name : UsePy
73- displayName : " Use Python 3.13 "
76+ displayName : ' Use Python $(PY_VER) '
7477 inputs :
75- versionSpec : 3.13
78+ versionSpec : ' $(PY_VER) '
7679
7780 - bash : |
7881 echo "Checking the python version in use to set LD_LIBRARY_PATH"
Original file line number Diff line number Diff line change @@ -153,14 +153,15 @@ jobs:
153153 | jq -r '[.[] | .tag_name | select(startswith("'"${{ parameters.python_version }}"'"))] | .[]' \
154154 | sort -V | tail -n 1 | cut -d- -f1)
155155 echo "Resolved latest python version: $PATCH"
156+ echo "##vso[task.setvariable variable=PY_VER]$PATCH"
156157 echo "##vso[task.setvariable variable=LD_LIBRARY_PATH;]/agent/_work/_tool/Python/${PATCH}/x64/lib/"
157158 displayName: 'Query and set python tool cache path'
158159
159160 - task : UsePythonVersion@0
160161 name : UsePy
161- displayName : " Use Python ${{ parameters.python_version }} "
162+ displayName : ' Use Python $(PY_VER) '
162163 inputs :
163- versionSpec : ${{ parameters.python_version }}
164+ versionSpec : ' $(PY_VER) '
164165
165166
166167 - bash : |
Original file line number Diff line number Diff line change @@ -128,15 +128,18 @@ stages:
128128 PATCH=$(curl -s https://api.github.com/repos/actions/python-versions/releases \
129129 | jq -r '[.[] | .tag_name | select(startswith("3.13"))] | .[]' \
130130 | sort -V | tail -n 1 | cut -d- -f1)
131+
132+ echo "##vso[task.setvariable variable=PY_VER]$PATCH"
131133 echo "Resolved latest python version: $PATCH"
132134 echo "##vso[task.setvariable variable=LD_LIBRARY_PATH;]/agent/_work/_tool/Python/${PATCH}/x64/lib/"
133- displayName: 'Query and set python tool cache path'
135+ displayName: 'Query and set python tool cache path'
136+
134137
135138 - task : UsePythonVersion@0
136139 name : UsePy
137- displayName : " Use Python 3.13 "
140+ displayName : ' Use Python $(PY_VER) '
138141 inputs :
139- versionSpec : 3.13
142+ versionSpec : ' $(PY_VER) '
140143
141144 - bash : |
142145 echo "Checking the python version in use to set LD_LIBRARY_PATH"
Original file line number Diff line number Diff line change @@ -36,18 +36,20 @@ jobs:
3636
3737 - bash : |
3838 PATCH=$(curl -s https://api.github.com/repos/actions/python-versions/releases \
39- | jq -r '[.[] | .tag_name | select(startswith("3.13"))] | .[]' \
40- | sort -V | tail -n 1 | cut -d- -f1)
39+ | jq -r '[.[] | .tag_name | select(startswith("3.13"))] | .[]' \
40+ | sort -V | tail -n 1 | cut -d- -f1)
41+
42+ echo "##vso[task.setvariable variable=PY_VER]$PATCH"
4143 echo "Resolved latest python version: $PATCH"
4244 echo "##vso[task.setvariable variable=LD_LIBRARY_PATH;]/agent/_work/_tool/Python/${PATCH}/x64/lib/"
43- displayName: 'Query and set python tool cache path'
45+ displayName: 'Query and set python tool cache path'
4446
4547
4648 - task : UsePythonVersion@0
4749 name : UsePy
48- displayName : ' Use Python 3.13 '
50+ displayName : ' Use Python $(PY_VER) '
4951 inputs :
50- versionSpec : 3.13
52+ versionSpec : ' $(PY_VER) '
5153
5254 - bash : |
5355 echo "Checking the python version in use to set LD_LIBRARY_PATH"
You can’t perform that action at this time.
0 commit comments