Skip to content

Commit 3cc4f0d

Browse files
authored
Merge pull request #536 from NHSDigital/APIM-6679-Python-Update
Set pr cleanup pipeline to use python 3.13
2 parents 5dbaa1d + 89977a1 commit 3cc4f0d

File tree

4 files changed

+38
-2
lines changed

4 files changed

+38
-2
lines changed

ansible/roles/remove-old-ecs-pr-deploys/tasks/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
terraform_lock_timeout_mins: 0
3535

3636
- name: maybe remove deployment
37-
include: remove-ecs-deployment.yml
37+
include_tasks: remove-ecs-deployment.yml
3838
with_list: "{{ ns_service_tuples }}"
3939
loop_control:
4040
loop_var: ns_service_tuple

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

poetry.lock

Lines changed: 16 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ boto3 = "^1.34.0"
2929
ansible-core = "^2.19.4"
3030
urllib3 = "^2.5.0"
3131
cryptography = "44.0.1"
32+
click="^8.1.2"
3233

3334
[poetry.group.dev.dependencies]
3435
ansible-lint = "^6.0"

0 commit comments

Comments
 (0)