mirror of
https://github.com/actions/python-versions.git
synced 2025-12-16 15:58:16 +00:00
Compare commits
5 Commits
changesche
...
test-win-1
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
fd877686de | ||
|
|
12d1aafbbe | ||
|
|
47c0f8f504 | ||
|
|
932e85b2f9 | ||
|
|
24026245a8 |
23
.github/workflows/build-python-packages.yml
vendored
23
.github/workflows/build-python-packages.yml
vendored
@@ -146,6 +146,28 @@ jobs:
|
|||||||
}
|
}
|
||||||
working-directory: ${{ runner.temp }}/${{ env.ARTIFACT_NAME }}
|
working-directory: ${{ runner.temp }}/${{ env.ARTIFACT_NAME }}
|
||||||
|
|
||||||
|
- name: Check OS Architecture and Python Binary
|
||||||
|
shell: pwsh
|
||||||
|
run: |
|
||||||
|
Write-Host "OS Architecture:"
|
||||||
|
[System.Runtime.InteropServices.RuntimeInformation]::OSArchitecture
|
||||||
|
|
||||||
|
$pythonPath = "C:\\hostedtoolcache\\windows\\Python\\${{ env.VERSION }}\\${{ matrix.arch }}\\python.exe"
|
||||||
|
Write-Host "Checking python.exe path: $pythonPath"
|
||||||
|
if (Test-Path $pythonPath) {
|
||||||
|
$file = Get-Item $pythonPath
|
||||||
|
Write-Host "python.exe exists. Size: $($file.Length) bytes"
|
||||||
|
} else {
|
||||||
|
Write-Host "python.exe is missing at $pythonPath"
|
||||||
|
}
|
||||||
|
|
||||||
|
Write-Host "Listing Toolcache directory:"
|
||||||
|
Get-ChildItem "C:\\hostedtoolcache\\windows\\Python\\${{ env.VERSION }}\\${{ matrix.arch }}" -Recurse -Force
|
||||||
|
|
||||||
|
Write-Host "Listing extracted artifact contents:"
|
||||||
|
Get-ChildItem -Recurse "${{ runner.temp }}\\${{ env.ARTIFACT_NAME }}"
|
||||||
|
|
||||||
|
|
||||||
- name: Apply build artifact to the local machine
|
- name: Apply build artifact to the local machine
|
||||||
run: |
|
run: |
|
||||||
$PSNativeCommandUseErrorActionPreference = $true
|
$PSNativeCommandUseErrorActionPreference = $true
|
||||||
@@ -193,6 +215,7 @@ jobs:
|
|||||||
}
|
}
|
||||||
working-directory: ${{ github.workspace }}/tests
|
working-directory: ${{ github.workspace }}/tests
|
||||||
|
|
||||||
|
|
||||||
publish_release:
|
publish_release:
|
||||||
name: Publish release
|
name: Publish release
|
||||||
if: github.event_name == 'workflow_dispatch' && inputs.PUBLISH_RELEASES
|
if: github.event_name == 'workflow_dispatch' && inputs.PUBLISH_RELEASES
|
||||||
|
|||||||
2
.github/workflows/get-python-versions.yml
vendored
2
.github/workflows/get-python-versions.yml
vendored
@@ -1,7 +1,7 @@
|
|||||||
name: Get Python versions
|
name: Get Python versions
|
||||||
on:
|
on:
|
||||||
schedule:
|
schedule:
|
||||||
- cron: '0 0,12 * * *'
|
- cron: '0 3,15 * * *'
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
|
|||||||
Reference in New Issue
Block a user