Skip to content

Commit e805f6d

Browse files
committed
Set pr cleanup pipeline to use python 3.13
1 parent 96c8fc9 commit e805f6d

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

azure/cleanup-ecs-pr-proxies.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,26 @@ jobs:
6060
debug: true
6161
displayName: cache utils pre-requisites
6262

63+
- bash: |
64+
PATCH=$(curl -s https://api.github.com/repos/actions/python-versions/releases \
65+
| jq -r '[.[] | .tag_name | select(startswith("3.13"))] | .[]' \
66+
| sort -V | tail -n 1 | cut -d- -f1)
67+
echo "Resolved latest python version: $PATCH"
68+
echo "##vso[task.setvariable variable=LD_LIBRARY_PATH;]/agent/_work/_tool/Python/${PATCH}/x64/lib/"
69+
displayName: 'Query and set python tool cache path'
70+
71+
- task: UsePythonVersion@0
72+
name: UsePy
73+
displayName: "Use Python 3.13"
74+
inputs:
75+
versionSpec: 3.13
76+
77+
- bash: |
78+
echo "Checking the python version in use to set LD_LIBRARY_PATH"
79+
echo "Python location: $(UsePy.pythonLocation)"
80+
echo "##vso[task.setvariable variable=LD_LIBRARY_PATH]$(UsePy.pythonLocation)/lib"
81+
displayName: 'Set LD_LIBRARY_PATH'
82+
6383
- bash: |
6484
make install
6585
displayName: install dependencies

0 commit comments

Comments
 (0)