Skip to content

ci: add actions/setup-python to update-python-platform workflow #3561

@Ankitsinghsisodya

Description

@Ankitsinghsisodya

Problem

The update-python-platform.yaml workflow runs make test-python (smoke tests) without first installing a specific Python version via actions/setup-python. This silently couples CI to whatever Python version happens to be pre-installed on the runner image, which may differ from the project's stated requirement of Python 3.10 (as defined by PYTHON_VERSION: "3.10" in functions.yaml).

If the runner image updates its default Python version, the smoke tests could silently run against the wrong Python version or break unexpectedly.

Fix

Add uses: actions/setup-python@v5 with python-version: "3.10" before the smoke test step in .github/workflows/update-python-platform.yaml.

Affected File

.github/workflows/update-python-platform.yaml

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions