Compare commits

...

12 Commits

Author SHA1 Message Date
MaksimZhukov
5c48eb00d0 Merge pull request #76 from dmitry-shibanov/v-dmshib/fix-warning-location
Add flag to skip warnings location of pip
2021-01-13 10:54:39 +03:00
Dmitry Shibanov
f102cb2a16 add flag to skip warnings of location of pip 2021-01-11 11:29:39 +03:00
github-actions[bot]
dc6698e2f1 Update versions-manifest (#74)
Co-authored-by: Service account <no-reply@microsoft.com>
2021-01-06 12:04:57 +03:00
MaksimZhukov
50aa2873fc Merge pull request #73 from actions/update-versions-manifest-file
[versions-manifest] Update for release from 12/22/2020
2020-12-22 10:11:27 +03:00
MaksimZhukov
cf414aaddb Merge pull request #72 from actions/v-mazhuk/fix-cask-issue
Remove the temporary step with PowerShell version upgrade
2020-12-22 10:11:16 +03:00
Service account
139e1b9608 Update versions-manifest 2020-12-22 01:06:28 +00:00
MaksimZhukov
f4137da2f9 Remove temporary step 2020-12-22 03:41:24 +03:00
MaksimZhukov
456c8c380c Update the brew upgrade command 2020-12-22 03:38:12 +03:00
MaksimZhukov
30a06d5828 Merge pull request #71 from actions/v-mazhuk/add-test-workflow
Add a new workflow to test Python versions
2020-12-16 09:23:36 +03:00
MaksimZhukov
d3614793c0 Add a new workflow to test Python versions 2020-12-15 17:31:08 +03:00
MaksimZhukov
fab0879a3d Merge pull request #70 from actions/update-versions-manifest-file
[versions-manifest] Update for release from 12/15/2020
2020-12-15 11:48:07 +03:00
Service account
105a61d2c8 Update versions-manifest 2020-12-15 08:12:39 +00:00
5 changed files with 174 additions and 12 deletions

View 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))'

View File

@@ -8,16 +8,6 @@ jobs:
- checkout: self - checkout: self
submodules: true 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 - task: PowerShell@2
displayName: 'Build Python $(VERSION)' displayName: 'Build Python $(VERSION)'
inputs: inputs:

View File

@@ -50,7 +50,7 @@ chmod +x ../python $PYTHON_MAJOR $PYTHON_MAJOR_DOT_MINOR $PYTHON_MAJORMINOR pyth
echo "Upgrading PIP..." echo "Upgrading PIP..."
./python -m ensurepip ./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" echo "Create complete file"
touch $PYTHON_TOOLCACHE_VERSION_PATH/x64.complete touch $PYTHON_TOOLCACHE_VERSION_PATH/x64.complete

View File

@@ -123,7 +123,7 @@ if ($LASTEXITCODE -ne 0) {
Write-Host "Install and upgrade Pip" Write-Host "Install and upgrade Pip"
$PythonExePath = Join-Path -Path $PythonArchPath -ChildPath "python.exe" $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" Write-Host "Create complete file"
New-Item -ItemType File -Path $PythonVersionPath -Name "$Architecture.complete" | Out-Null New-Item -ItemType File -Path $PythonVersionPath -Name "$Architecture.complete" | Out-Null

View File

@@ -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", "version": "3.10.0-alpha.3",
"stable": false, "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", "version": "3.8.6",
"stable": true, "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", "version": "3.6.12",
"stable": true, "stable": true,