ci(release): use preinstalled Python on self-hosted windows runner
Some checks failed
Desktop CI / tests (push) Successful in 13s
Desktop Release / release (push) Failing after 14s

This commit is contained in:
2026-02-15 17:20:42 +03:00
parent 37ce500fd2
commit c8da0f9191

View File

@@ -16,10 +16,21 @@ jobs:
fetch-depth: 0 fetch-depth: 0
tags: true tags: true
- name: Set up Python - name: Ensure Python 3.13
uses: https://git.daemonlord.ru/actions/setup-python@v5 shell: powershell
with: run: |
python-version: "3.13" if (Get-Command python -ErrorAction SilentlyContinue) {
python --version
} elseif (Get-Command py -ErrorAction SilentlyContinue) {
$pyExe = py -3.13 -c "import sys; print(sys.executable)"
if (-not $pyExe) {
throw "Python 3.13 launcher is available, but interpreter was not found."
}
Split-Path $pyExe | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
python --version
} else {
throw "Python is not installed on runner. Install Python 3.13 and restart runner service."
}
- name: Install dependencies - name: Install dependencies
shell: bash shell: bash