Skip to content

Commit 5218324

Browse files
committed
Prepend PATH and check version
1 parent 17be0c3 commit 5218324

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

.github/workflows/build.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,14 @@ jobs:
4343
- name: Set up Python 3.14.0b1
4444
run: |
4545
nuget install python -Version 3.14.0-b1 -x -o .
46-
(gi .\python*\tools\python.exe).Parent | Out-File $env:GITHUB_PATH -Encoding UTF8 -Append
46+
$old = Get-Content $env:GITHUB_PATH
47+
(gi .\python*\tools\python.exe).Parent | Out-File $env:GITHUB_PATH -Encoding UTF8
48+
$old | Out-File $env:GITHUB_PATH -Encoding UTF8 -Append
4749
working-directory: ${{ runner.temp }}
4850

51+
- name: Check Python version
52+
run: python -c "import sys; sys.exit(0 if sys.version_info[:3] == (3, 14, 0) else 1)"
53+
4954
- name: Install build dependencies
5055
run: python -m pip install "pymsbuild>=1.2.0b1"
5156

0 commit comments

Comments
 (0)