mirror of
https://github.com/actions/python-versions.git
synced 2025-12-15 15:32:11 +00:00
Compare commits
12 Commits
3.7.1-9231
...
3.10.0-alp
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
5c48eb00d0 | ||
|
|
f102cb2a16 | ||
|
|
dc6698e2f1 | ||
|
|
50aa2873fc | ||
|
|
cf414aaddb | ||
|
|
139e1b9608 | ||
|
|
f4137da2f9 | ||
|
|
456c8c380c | ||
|
|
30a06d5828 | ||
|
|
d3614793c0 | ||
|
|
fab0879a3d | ||
|
|
105a61d2c8 |
34
.github/workflows/test-python-version.yml
vendored
Normal file
34
.github/workflows/test-python-version.yml
vendored
Normal file
@@ -0,0 +1,34 @@
|
||||
name: Test Python version
|
||||
on:
|
||||
workflow_dispatch:
|
||||
inputs:
|
||||
version:
|
||||
description: 'Python version to build'
|
||||
required: true
|
||||
architecture:
|
||||
description: 'The target architecture (x86, x64) of the Python'
|
||||
required: false
|
||||
default: 'x64'
|
||||
|
||||
jobs:
|
||||
test-python:
|
||||
name: Test Python ${{ github.event.inputs.version }} ${{ matrix.os }}
|
||||
runs-on: ${{ matrix.os }}
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
os: [macos-latest, windows-latest, ubuntu-18.04, ubuntu-20.04]
|
||||
steps:
|
||||
- name: Setup Python ${{ github.event.inputs.version }}
|
||||
uses: actions/setup-python@main
|
||||
with:
|
||||
python-version: ${{ github.event.inputs.version }}
|
||||
architecture: ${{ github.event.inputs.architecture }}
|
||||
|
||||
- name: Validate version
|
||||
run: |
|
||||
python --version
|
||||
shell: pwsh
|
||||
|
||||
- name: Run simple code
|
||||
run: python -c 'import math; print(math.factorial(5))'
|
||||
@@ -8,16 +8,6 @@ jobs:
|
||||
- checkout: self
|
||||
submodules: true
|
||||
|
||||
# We need this temporary step to have a consistent version of PowerShell on all images.
|
||||
- task: PowerShell@2
|
||||
displayName: 'Update PowerShell version for macOS'
|
||||
condition: eq(variables['Platform'], 'darwin')
|
||||
inputs:
|
||||
TargetType: inline
|
||||
script: |
|
||||
brew update
|
||||
brew cask upgrade powershell
|
||||
|
||||
- task: PowerShell@2
|
||||
displayName: 'Build Python $(VERSION)'
|
||||
inputs:
|
||||
|
||||
@@ -50,7 +50,7 @@ chmod +x ../python $PYTHON_MAJOR $PYTHON_MAJOR_DOT_MINOR $PYTHON_MAJORMINOR pyth
|
||||
|
||||
echo "Upgrading PIP..."
|
||||
./python -m ensurepip
|
||||
./python -m pip install --ignore-installed pip
|
||||
./python -m pip install --ignore-installed pip --no-warn-script-location
|
||||
|
||||
echo "Create complete file"
|
||||
touch $PYTHON_TOOLCACHE_VERSION_PATH/x64.complete
|
||||
|
||||
@@ -123,7 +123,7 @@ if ($LASTEXITCODE -ne 0) {
|
||||
|
||||
Write-Host "Install and upgrade Pip"
|
||||
$PythonExePath = Join-Path -Path $PythonArchPath -ChildPath "python.exe"
|
||||
cmd.exe /c "$PythonExePath -m ensurepip && $PythonExePath -m pip install --upgrade pip"
|
||||
cmd.exe /c "$PythonExePath -m ensurepip && $PythonExePath -m pip install --upgrade pip --no-warn-script-location"
|
||||
|
||||
Write-Host "Create complete file"
|
||||
New-Item -ItemType File -Path $PythonVersionPath -Name "$Architecture.complete" | Out-Null
|
||||
|
||||
@@ -1,4 +1,50 @@
|
||||
[
|
||||
{
|
||||
"version": "3.10.0-alpha.4",
|
||||
"stable": false,
|
||||
"release_url": "https://github.com/actions/python-versions/releases/tag/3.10.0-alpha.4-94572",
|
||||
"files": [
|
||||
{
|
||||
"filename": "python-3.10.0-alpha.4-darwin-x64.tar.gz",
|
||||
"arch": "x64",
|
||||
"platform": "darwin",
|
||||
"download_url": "https://github.com/actions/python-versions/releases/download/3.10.0-alpha.4-94572/python-3.10.0-alpha.4-darwin-x64.tar.gz"
|
||||
},
|
||||
{
|
||||
"filename": "python-3.10.0-alpha.4-linux-16.04-x64.tar.gz",
|
||||
"arch": "x64",
|
||||
"platform": "linux",
|
||||
"platform_version": "16.04",
|
||||
"download_url": "https://github.com/actions/python-versions/releases/download/3.10.0-alpha.4-94572/python-3.10.0-alpha.4-linux-16.04-x64.tar.gz"
|
||||
},
|
||||
{
|
||||
"filename": "python-3.10.0-alpha.4-linux-18.04-x64.tar.gz",
|
||||
"arch": "x64",
|
||||
"platform": "linux",
|
||||
"platform_version": "18.04",
|
||||
"download_url": "https://github.com/actions/python-versions/releases/download/3.10.0-alpha.4-94572/python-3.10.0-alpha.4-linux-18.04-x64.tar.gz"
|
||||
},
|
||||
{
|
||||
"filename": "python-3.10.0-alpha.4-linux-20.04-x64.tar.gz",
|
||||
"arch": "x64",
|
||||
"platform": "linux",
|
||||
"platform_version": "20.04",
|
||||
"download_url": "https://github.com/actions/python-versions/releases/download/3.10.0-alpha.4-94572/python-3.10.0-alpha.4-linux-20.04-x64.tar.gz"
|
||||
},
|
||||
{
|
||||
"filename": "python-3.10.0-alpha.4-win32-x64.zip",
|
||||
"arch": "x64",
|
||||
"platform": "win32",
|
||||
"download_url": "https://github.com/actions/python-versions/releases/download/3.10.0-alpha.4-94572/python-3.10.0-alpha.4-win32-x64.zip"
|
||||
},
|
||||
{
|
||||
"filename": "python-3.10.0-alpha.4-win32-x86.zip",
|
||||
"arch": "x86",
|
||||
"platform": "win32",
|
||||
"download_url": "https://github.com/actions/python-versions/releases/download/3.10.0-alpha.4-94572/python-3.10.0-alpha.4-win32-x86.zip"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"version": "3.10.0-alpha.3",
|
||||
"stable": false,
|
||||
@@ -459,6 +505,52 @@
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"version": "3.8.7",
|
||||
"stable": true,
|
||||
"release_url": "https://github.com/actions/python-versions/releases/tag/3.8.7-93274",
|
||||
"files": [
|
||||
{
|
||||
"filename": "python-3.8.7-darwin-x64.tar.gz",
|
||||
"arch": "x64",
|
||||
"platform": "darwin",
|
||||
"download_url": "https://github.com/actions/python-versions/releases/download/3.8.7-93274/python-3.8.7-darwin-x64.tar.gz"
|
||||
},
|
||||
{
|
||||
"filename": "python-3.8.7-linux-16.04-x64.tar.gz",
|
||||
"arch": "x64",
|
||||
"platform": "linux",
|
||||
"platform_version": "16.04",
|
||||
"download_url": "https://github.com/actions/python-versions/releases/download/3.8.7-93274/python-3.8.7-linux-16.04-x64.tar.gz"
|
||||
},
|
||||
{
|
||||
"filename": "python-3.8.7-linux-18.04-x64.tar.gz",
|
||||
"arch": "x64",
|
||||
"platform": "linux",
|
||||
"platform_version": "18.04",
|
||||
"download_url": "https://github.com/actions/python-versions/releases/download/3.8.7-93274/python-3.8.7-linux-18.04-x64.tar.gz"
|
||||
},
|
||||
{
|
||||
"filename": "python-3.8.7-linux-20.04-x64.tar.gz",
|
||||
"arch": "x64",
|
||||
"platform": "linux",
|
||||
"platform_version": "20.04",
|
||||
"download_url": "https://github.com/actions/python-versions/releases/download/3.8.7-93274/python-3.8.7-linux-20.04-x64.tar.gz"
|
||||
},
|
||||
{
|
||||
"filename": "python-3.8.7-win32-x64.zip",
|
||||
"arch": "x64",
|
||||
"platform": "win32",
|
||||
"download_url": "https://github.com/actions/python-versions/releases/download/3.8.7-93274/python-3.8.7-win32-x64.zip"
|
||||
},
|
||||
{
|
||||
"filename": "python-3.8.7-win32-x86.zip",
|
||||
"arch": "x86",
|
||||
"platform": "win32",
|
||||
"download_url": "https://github.com/actions/python-versions/releases/download/3.8.7-93274/python-3.8.7-win32-x86.zip"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"version": "3.8.6",
|
||||
"stable": true,
|
||||
@@ -1011,6 +1103,52 @@
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"version": "3.7.1",
|
||||
"stable": true,
|
||||
"release_url": "https://github.com/actions/python-versions/releases/tag/3.7.1-92312",
|
||||
"files": [
|
||||
{
|
||||
"filename": "python-3.7.1-darwin-x64.tar.gz",
|
||||
"arch": "x64",
|
||||
"platform": "darwin",
|
||||
"download_url": "https://github.com/actions/python-versions/releases/download/3.7.1-92312/python-3.7.1-darwin-x64.tar.gz"
|
||||
},
|
||||
{
|
||||
"filename": "python-3.7.1-linux-16.04-x64.tar.gz",
|
||||
"arch": "x64",
|
||||
"platform": "linux",
|
||||
"platform_version": "16.04",
|
||||
"download_url": "https://github.com/actions/python-versions/releases/download/3.7.1-92312/python-3.7.1-linux-16.04-x64.tar.gz"
|
||||
},
|
||||
{
|
||||
"filename": "python-3.7.1-linux-18.04-x64.tar.gz",
|
||||
"arch": "x64",
|
||||
"platform": "linux",
|
||||
"platform_version": "18.04",
|
||||
"download_url": "https://github.com/actions/python-versions/releases/download/3.7.1-92312/python-3.7.1-linux-18.04-x64.tar.gz"
|
||||
},
|
||||
{
|
||||
"filename": "python-3.7.1-linux-20.04-x64.tar.gz",
|
||||
"arch": "x64",
|
||||
"platform": "linux",
|
||||
"platform_version": "20.04",
|
||||
"download_url": "https://github.com/actions/python-versions/releases/download/3.7.1-92312/python-3.7.1-linux-20.04-x64.tar.gz"
|
||||
},
|
||||
{
|
||||
"filename": "python-3.7.1-win32-x64.zip",
|
||||
"arch": "x64",
|
||||
"platform": "win32",
|
||||
"download_url": "https://github.com/actions/python-versions/releases/download/3.7.1-92312/python-3.7.1-win32-x64.zip"
|
||||
},
|
||||
{
|
||||
"filename": "python-3.7.1-win32-x86.zip",
|
||||
"arch": "x86",
|
||||
"platform": "win32",
|
||||
"download_url": "https://github.com/actions/python-versions/releases/download/3.7.1-92312/python-3.7.1-win32-x86.zip"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"version": "3.6.12",
|
||||
"stable": true,
|
||||
|
||||
Reference in New Issue
Block a user