mirror of
https://github.com/actions/python-versions.git
synced 2025-12-15 23:36:44 +00:00
Compare commits
5 Commits
3.14.0-rc.
...
test-win-1
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
fd877686de | ||
|
|
12d1aafbbe | ||
|
|
47c0f8f504 | ||
|
|
932e85b2f9 | ||
|
|
24026245a8 |
55
.github/workflows/build-python-packages.yml
vendored
55
.github/workflows/build-python-packages.yml
vendored
@@ -146,15 +146,37 @@ 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
|
||||||
if ('${{ matrix.platform }}' -eq 'win32') {
|
if ('${{ matrix.platform }}' -eq 'win32') {
|
||||||
powershell ./setup.ps1
|
powershell ./setup.ps1
|
||||||
} else {
|
} else {
|
||||||
sh ./setup.sh
|
sh ./setup.sh
|
||||||
cp ${{ runner.temp }}/${{ env.ARTIFACT_NAME }}/build_output.txt ${{ runner.temp }}
|
cp ${{ runner.temp }}/${{ env.ARTIFACT_NAME }}/build_output.txt ${{ runner.temp }}
|
||||||
}
|
}
|
||||||
working-directory: ${{ runner.temp }}/${{ env.ARTIFACT_NAME }}
|
working-directory: ${{ runner.temp }}/${{ env.ARTIFACT_NAME }}
|
||||||
|
|
||||||
- name: Setup Python ${{ env.VERSION }}
|
- name: Setup Python ${{ env.VERSION }}
|
||||||
@@ -179,20 +201,21 @@ jobs:
|
|||||||
|
|
||||||
- name: Run tests
|
- name: Run tests
|
||||||
run: |
|
run: |
|
||||||
Install-Module Pester -Force -Scope CurrentUser -SkipPublisherCheck
|
Install-Module Pester -Force -Scope CurrentUser -SkipPublisherCheck
|
||||||
Import-Module Pester
|
Import-Module Pester
|
||||||
$pesterContainer = New-PesterContainer -Path './python-tests.ps1' -Data @{
|
$pesterContainer = New-PesterContainer -Path './python-tests.ps1' -Data @{
|
||||||
Version="${{ env.VERSION }}";
|
Version="${{ env.VERSION }}";
|
||||||
Platform="${{ matrix.platform }}";
|
Platform="${{ matrix.platform }}";
|
||||||
Architecture="${{ matrix.arch }}";
|
Architecture="${{ matrix.arch }}";
|
||||||
}
|
}
|
||||||
$Result = Invoke-Pester -Container $pesterContainer -PassThru
|
$Result = Invoke-Pester -Container $pesterContainer -PassThru
|
||||||
if ($Result.FailedCount -gt 0) {
|
if ($Result.FailedCount -gt 0) {
|
||||||
$host.SetShouldExit($Result.FailedCount)
|
$host.SetShouldExit($Result.FailedCount)
|
||||||
exit $Result.FailedCount
|
exit $Result.FailedCount
|
||||||
}
|
}
|
||||||
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
|
||||||
|
|||||||
4
.github/workflows/get-python-versions.yml
vendored
4
.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:
|
||||||
@@ -10,4 +10,4 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
tool-name: "Python"
|
tool-name: "Python"
|
||||||
image-url: "https://avatars.githubusercontent.com/u/1525981?s=200&v=4"
|
image-url: "https://avatars.githubusercontent.com/u/1525981?s=200&v=4"
|
||||||
secrets: inherit
|
secrets: inherit
|
||||||
@@ -1615,129 +1615,6 @@
|
|||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
|
||||||
"version": "3.13.6",
|
|
||||||
"stable": true,
|
|
||||||
"release_url": "https://github.com/actions/python-versions/releases/tag/3.13.6-16792117939",
|
|
||||||
"files": [
|
|
||||||
{
|
|
||||||
"filename": "python-3.13.6-darwin-arm64-freethreaded.tar.gz",
|
|
||||||
"arch": "arm64-freethreaded",
|
|
||||||
"platform": "darwin",
|
|
||||||
"download_url": "https://github.com/actions/python-versions/releases/download/3.13.6-16792117939/python-3.13.6-darwin-arm64-freethreaded.tar.gz"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"filename": "python-3.13.6-darwin-arm64.tar.gz",
|
|
||||||
"arch": "arm64",
|
|
||||||
"platform": "darwin",
|
|
||||||
"download_url": "https://github.com/actions/python-versions/releases/download/3.13.6-16792117939/python-3.13.6-darwin-arm64.tar.gz"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"filename": "python-3.13.6-darwin-x64-freethreaded.tar.gz",
|
|
||||||
"arch": "x64-freethreaded",
|
|
||||||
"platform": "darwin",
|
|
||||||
"download_url": "https://github.com/actions/python-versions/releases/download/3.13.6-16792117939/python-3.13.6-darwin-x64-freethreaded.tar.gz"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"filename": "python-3.13.6-darwin-x64.tar.gz",
|
|
||||||
"arch": "x64",
|
|
||||||
"platform": "darwin",
|
|
||||||
"download_url": "https://github.com/actions/python-versions/releases/download/3.13.6-16792117939/python-3.13.6-darwin-x64.tar.gz"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"filename": "python-3.13.6-linux-22.04-arm64-freethreaded.tar.gz",
|
|
||||||
"arch": "arm64-freethreaded",
|
|
||||||
"platform": "linux",
|
|
||||||
"platform_version": "22.04",
|
|
||||||
"download_url": "https://github.com/actions/python-versions/releases/download/3.13.6-16792117939/python-3.13.6-linux-22.04-arm64-freethreaded.tar.gz"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"filename": "python-3.13.6-linux-22.04-arm64.tar.gz",
|
|
||||||
"arch": "arm64",
|
|
||||||
"platform": "linux",
|
|
||||||
"platform_version": "22.04",
|
|
||||||
"download_url": "https://github.com/actions/python-versions/releases/download/3.13.6-16792117939/python-3.13.6-linux-22.04-arm64.tar.gz"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"filename": "python-3.13.6-linux-22.04-x64-freethreaded.tar.gz",
|
|
||||||
"arch": "x64-freethreaded",
|
|
||||||
"platform": "linux",
|
|
||||||
"platform_version": "22.04",
|
|
||||||
"download_url": "https://github.com/actions/python-versions/releases/download/3.13.6-16792117939/python-3.13.6-linux-22.04-x64-freethreaded.tar.gz"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"filename": "python-3.13.6-linux-22.04-x64.tar.gz",
|
|
||||||
"arch": "x64",
|
|
||||||
"platform": "linux",
|
|
||||||
"platform_version": "22.04",
|
|
||||||
"download_url": "https://github.com/actions/python-versions/releases/download/3.13.6-16792117939/python-3.13.6-linux-22.04-x64.tar.gz"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"filename": "python-3.13.6-linux-24.04-arm64-freethreaded.tar.gz",
|
|
||||||
"arch": "arm64-freethreaded",
|
|
||||||
"platform": "linux",
|
|
||||||
"platform_version": "24.04",
|
|
||||||
"download_url": "https://github.com/actions/python-versions/releases/download/3.13.6-16792117939/python-3.13.6-linux-24.04-arm64-freethreaded.tar.gz"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"filename": "python-3.13.6-linux-24.04-arm64.tar.gz",
|
|
||||||
"arch": "arm64",
|
|
||||||
"platform": "linux",
|
|
||||||
"platform_version": "24.04",
|
|
||||||
"download_url": "https://github.com/actions/python-versions/releases/download/3.13.6-16792117939/python-3.13.6-linux-24.04-arm64.tar.gz"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"filename": "python-3.13.6-linux-24.04-x64-freethreaded.tar.gz",
|
|
||||||
"arch": "x64-freethreaded",
|
|
||||||
"platform": "linux",
|
|
||||||
"platform_version": "24.04",
|
|
||||||
"download_url": "https://github.com/actions/python-versions/releases/download/3.13.6-16792117939/python-3.13.6-linux-24.04-x64-freethreaded.tar.gz"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"filename": "python-3.13.6-linux-24.04-x64.tar.gz",
|
|
||||||
"arch": "x64",
|
|
||||||
"platform": "linux",
|
|
||||||
"platform_version": "24.04",
|
|
||||||
"download_url": "https://github.com/actions/python-versions/releases/download/3.13.6-16792117939/python-3.13.6-linux-24.04-x64.tar.gz"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"filename": "python-3.13.6-win32-arm64-freethreaded.zip",
|
|
||||||
"arch": "arm64-freethreaded",
|
|
||||||
"platform": "win32",
|
|
||||||
"download_url": "https://github.com/actions/python-versions/releases/download/3.13.6-16792117939/python-3.13.6-win32-arm64-freethreaded.zip"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"filename": "python-3.13.6-win32-arm64.zip",
|
|
||||||
"arch": "arm64",
|
|
||||||
"platform": "win32",
|
|
||||||
"download_url": "https://github.com/actions/python-versions/releases/download/3.13.6-16792117939/python-3.13.6-win32-arm64.zip"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"filename": "python-3.13.6-win32-x64-freethreaded.zip",
|
|
||||||
"arch": "x64-freethreaded",
|
|
||||||
"platform": "win32",
|
|
||||||
"download_url": "https://github.com/actions/python-versions/releases/download/3.13.6-16792117939/python-3.13.6-win32-x64-freethreaded.zip"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"filename": "python-3.13.6-win32-x64.zip",
|
|
||||||
"arch": "x64",
|
|
||||||
"platform": "win32",
|
|
||||||
"download_url": "https://github.com/actions/python-versions/releases/download/3.13.6-16792117939/python-3.13.6-win32-x64.zip"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"filename": "python-3.13.6-win32-x86-freethreaded.zip",
|
|
||||||
"arch": "x86-freethreaded",
|
|
||||||
"platform": "win32",
|
|
||||||
"download_url": "https://github.com/actions/python-versions/releases/download/3.13.6-16792117939/python-3.13.6-win32-x86-freethreaded.zip"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"filename": "python-3.13.6-win32-x86.zip",
|
|
||||||
"arch": "x86",
|
|
||||||
"platform": "win32",
|
|
||||||
"download_url": "https://github.com/actions/python-versions/releases/download/3.13.6-16792117939/python-3.13.6-win32-x86.zip"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
"version": "3.13.5",
|
"version": "3.13.5",
|
||||||
"stable": true,
|
"stable": true,
|
||||||
|
|||||||
Reference in New Issue
Block a user