Skip to content

Commit 3da5a6c

Browse files
committed
Setup Python and print version in workflow
Add a Setup Python step (actions/setup-python@v6) that uses the PYTHON_VERSION_SHORT env var, and a step to show the Python versions (python --version and py -3 --version) before the Build CPython step. This ensures the runner has the expected Python interpreter available and makes it easier to debug/version-check the environment prior to building and packaging.
1 parent 272f487 commit 3da5a6c

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

.github/workflows/build-python.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,15 @@ jobs:
104104
contents: write
105105
steps:
106106
- uses: actions/checkout@v4
107+
- name: Setup Python
108+
uses: actions/setup-python@v6
109+
with:
110+
python-version: ${{ env.PYTHON_VERSION_SHORT }}
111+
- name: Show Python version
112+
shell: pwsh
113+
run: |
114+
python --version
115+
py -3 --version
107116
- name: Build CPython from sources and package for Dart
108117
shell: pwsh
109118
run: |

0 commit comments

Comments
 (0)