Skip to content

Commit a632797

Browse files
Fix warp CI Python version for Ubuntu 26.04 runners.
Use Python 3.14.6 in warp/.github/workflows/ci.yml and add a contract test to keep it aligned with versions.yaml semver_packages.python_version. Co-authored-by: Cursor <cursoragent@cursor.com>
1 parent 720a74b commit a632797

2 files changed

Lines changed: 9 additions & 1 deletion

File tree

tests/bats/contract-tests.bats

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,14 @@ _all_tf_output_names() {
9696
[[ "$output" == *"$yaml_ver"* ]]
9797
}
9898

99+
@test "CONTRACT: warp CI workflow PYTHON_VERSION matches versions.yaml semver_packages" {
100+
if ! command -v yq >/dev/null 2>&1; then skip "yq not installed"; fi
101+
local yaml_ver
102+
yaml_ver=$(yq eval '.semver_packages.python_version.current' "$VERSIONS_FILE")
103+
run grep "PYTHON_VERSION:" "${PROJECT_ROOT}/warp/.github/workflows/ci.yml"
104+
[[ "$output" == *"$yaml_ver"* ]]
105+
}
106+
99107
@test "CONTRACT: CI workflow TERRAFORM_VERSION matches versions.yaml" {
100108
if ! command -v yq >/dev/null 2>&1; then skip "yq not installed"; fi
101109
local yaml_ver

warp/.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ permissions:
4545

4646
# Environment variables for consistent tool versions across all jobs
4747
env:
48-
PYTHON_VERSION: '3.14.0' # Python version (matches main CI/CD workflow)
48+
PYTHON_VERSION: '3.14.6' # Python version (matches versions.yaml semver_packages.python_version)
4949
WARP_DIR: 'warp' # Warp project directory
5050

5151
jobs:

0 commit comments

Comments
 (0)