Skip to content

Commit 0a0525f

Browse files
update tests to use python 3.13 (#3)
1 parent dc5beeb commit 0a0525f

File tree

2 files changed

+9
-7
lines changed

2 files changed

+9
-7
lines changed

testing/pipeline/k8s-custom-pipelines.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,9 @@ stages:
4141
EXTENSION_NAME: "k8s-configuration"
4242
steps:
4343
- task: UsePythonVersion@0
44-
displayName: 'Use Python 3.10'
44+
displayName: 'Use Python 3.13'
4545
inputs:
46-
versionSpec: 3.10
46+
versionSpec: 3.13
4747
- bash: |
4848
set -ev
4949
echo "Building extension ${EXTENSION_NAME}..."
@@ -78,9 +78,9 @@ stages:
7878
vmImage: 'ubuntu-latest'
7979
steps:
8080
- task: UsePythonVersion@0
81-
displayName: 'Use Python 3.10'
81+
displayName: 'Use Python 3.13'
8282
inputs:
83-
versionSpec: 3.10
83+
versionSpec: 3.13
8484
- bash: |
8585
set -ev
8686

testing/pipeline/templates/run-test.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@ jobs:
1919
kubectl version --client
2020
displayName: "Setup the VM with helm3 and kubectl"
2121
- task: UsePythonVersion@0
22-
displayName: 'Use Python 3.10'
22+
displayName: 'Use Python 3.13'
2323
inputs:
24-
versionSpec: 3.10
24+
versionSpec: 3.13
2525
- bash: |
2626
set -ev
2727
echo "Building extension ${EXTENSION_NAME}..."
@@ -64,7 +64,9 @@ jobs:
6464
displayName: "Generate a settings.json file"
6565
- bash : |
6666
echo "Downloading the kind script"
67-
curl -Lo ./kind https://kind.sigs.k8s.io/dl/v0.24.0/kind-linux-amd64
67+
# Get the latest version tag and download
68+
LATEST_KIND_VERSION=$(curl -s https://api.github.com/repos/kubernetes-sigs/kind/releases/latest | grep '"tag_name":' | sed -E 's/.*"([^"]+)".*/\1/')
69+
curl -Lo ./kind "https://kind.sigs.k8s.io/dl/${LATEST_KIND_VERSION}/kind-linux-amd64"
6870
chmod +x ./kind
6971
./kind create cluster
7072
displayName: "Create and Start the Kind cluster"

0 commit comments

Comments
 (0)