mirror of
https://github.com/actions/python-versions.git
synced 2025-12-15 06:56:43 +00:00
Compare commits
29 Commits
3.9.9-1192
...
3.11.0-alp
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
8cfdc61c3b | ||
|
|
b27516266f | ||
|
|
8beb652c81 | ||
|
|
7e70acf5f2 | ||
|
|
135879dbe3 | ||
|
|
765df7c393 | ||
|
|
811f1bc41a | ||
|
|
133a2c6b96 | ||
|
|
ba826d5d0b | ||
|
|
9975c96a92 | ||
|
|
a5914bfabd | ||
|
|
af28f23a02 | ||
|
|
e3851845a3 | ||
|
|
3beea61c1f | ||
|
|
41f641758a | ||
|
|
3792b6282a | ||
|
|
4a2af81ac1 | ||
|
|
59e54b2d8b | ||
|
|
c310309d73 | ||
|
|
026f6eb35e | ||
|
|
71d3f7dafc | ||
|
|
79fa4f7a23 | ||
|
|
63966c6b23 | ||
|
|
e9b568c830 | ||
|
|
9e322ab404 | ||
|
|
1499930abd | ||
|
|
5aa825ba9f | ||
|
|
1a5414fab1 | ||
|
|
2e89c64089 |
2
.github/workflows/create-pr.yml
vendored
2
.github/workflows/create-pr.yml
vendored
@@ -30,4 +30,4 @@ jobs:
|
||||
-BranchName "update-versions-manifest-file" `
|
||||
-CommitMessage "Update versions-manifest" `
|
||||
-PullRequestTitle "[versions-manifest] Update for release from ${formattedDate}" `
|
||||
-PullRequestBody "Update versions-manifest.json for release from ${formattedDate}"
|
||||
-PullRequestBody "Update versions-manifest.json for release from ${formattedDate}"
|
||||
|
||||
95
.github/workflows/get-python-versions.yml
vendored
Normal file
95
.github/workflows/get-python-versions.yml
vendored
Normal file
@@ -0,0 +1,95 @@
|
||||
name: Get Python versions
|
||||
on:
|
||||
schedule:
|
||||
- cron: '0 3,15 * * *'
|
||||
workflow_dispatch:
|
||||
|
||||
env:
|
||||
TOOL_NAME: "Python"
|
||||
defaults:
|
||||
run:
|
||||
shell: pwsh
|
||||
|
||||
jobs:
|
||||
find_new_versions:
|
||||
name: Find new versions
|
||||
runs-on: ubuntu-latest
|
||||
outputs:
|
||||
versions_output: ${{ steps.Get_new_versions.outputs.TOOL_VERSIONS }}
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
with:
|
||||
submodules: true
|
||||
|
||||
- id: Get_new_versions
|
||||
name: Get new versions
|
||||
run: ./helpers/get-new-tool-versions/get-new-tool-versions.ps1 -ToolName ${{ env.TOOL_NAME }}
|
||||
|
||||
check_new_versions:
|
||||
name: Check new versions
|
||||
runs-on: ubuntu-latest
|
||||
needs: find_new_versions
|
||||
env:
|
||||
TOOL_VERSIONS: ${{needs.find_new_versions.outputs.versions_output}}
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
with:
|
||||
submodules: true
|
||||
|
||||
- name: Check Versions
|
||||
if: env.TOOL_VERSIONS == ''
|
||||
run: |
|
||||
Write-Host "No new versions were found"
|
||||
Import-Module "./helpers/github/github-api.psm1"
|
||||
$gitHubApi = Get-GitHubApi -RepositoryFullName "$env:GITHUB_REPOSITORY" `
|
||||
-AccessToken "${{ secrets.PERSONAL_TOKEN }}"
|
||||
$gitHubApi.CancelWorkflow("$env:GITHUB_RUN_ID")
|
||||
Start-Sleep -Seconds 60
|
||||
- name: Send Slack notification
|
||||
run: |
|
||||
$pipelineUrl = "$env:GITHUB_SERVER_URL/$env:GITHUB_REPOSITORY/actions/runs/$env:GITHUB_RUN_ID"
|
||||
$message = "The following versions of '${{ env.TOOL_NAME }}' are available to upload: ${{ env.TOOL_VERSIONS }}\nLink to the pipeline: $pipelineUrl"
|
||||
./helpers/get-new-tool-versions/send-slack-notification.ps1 -Url "${{ secrets.SLACK_CHANNEL_URL }}" `
|
||||
-ToolName "${{ env.TOOL_NAME }}" `
|
||||
-ImageUrl "https://avatars.githubusercontent.com/u/1525981?s=200&v=4" `
|
||||
-Text "$message"
|
||||
|
||||
trigger_builds:
|
||||
name: Trigger builds
|
||||
runs-on: ubuntu-latest
|
||||
needs: [find_new_versions, check_new_versions]
|
||||
env:
|
||||
TOOL_VERSIONS: ${{needs.find_new_versions.outputs.versions_output}}
|
||||
environment: Get Available Tools Versions - Publishing Approval
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
with:
|
||||
submodules: true
|
||||
|
||||
- name: Trigger "Build python packages" workflow
|
||||
run:
|
||||
./helpers/github/run-ci-builds.ps1 -RepositoryFullName "$env:GITHUB_REPOSITORY" `
|
||||
-AccessToken "${{ secrets.PERSONAL_TOKEN }}" `
|
||||
-WorkflowFileName "python-builder.yml" `
|
||||
-WorkflowDispatchRef "main" `
|
||||
-ToolVersions "${{ env.TOOL_VERSIONS }}" `
|
||||
-PublishReleases "true"
|
||||
|
||||
check_build:
|
||||
name: Check build for failures
|
||||
runs-on: ubuntu-latest
|
||||
needs: [find_new_versions, check_new_versions, trigger_builds]
|
||||
if: failure()
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
with:
|
||||
submodules: true
|
||||
|
||||
- name: Send Slack notification if build fails
|
||||
run: |
|
||||
$pipelineUrl = "$env:GITHUB_SERVER_URL/$env:GITHUB_REPOSITORY/actions/runs/$env:GITHUB_RUN_ID"
|
||||
$message = "The build of the '${{ env.TOOL_NAME }}' detection pipeline failed :progress-error:\nLink to the pipeline: $pipelineUrl"
|
||||
./helpers/get-new-tool-versions/send-slack-notification.ps1 -Url "${{ secrets.SLACK_CHANNEL_URL }}" `
|
||||
-ToolName "${{ env.TOOL_NAME }}" `
|
||||
-Text "$message" `
|
||||
-ImageUrl "https://avatars.githubusercontent.com/u/1525981?s=200&v=4"
|
||||
215
.github/workflows/python-builder.yml
vendored
Normal file
215
.github/workflows/python-builder.yml
vendored
Normal file
@@ -0,0 +1,215 @@
|
||||
name: Build python package
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
inputs:
|
||||
VERSION:
|
||||
description: 'Python version to build and upload'
|
||||
default: '3.9.9'
|
||||
required: true
|
||||
PUBLISH_RELEASES:
|
||||
description: 'Whether to publish releases'
|
||||
required: true
|
||||
default: 'false'
|
||||
pull_request:
|
||||
paths-ignore:
|
||||
- 'versions-manifest.json'
|
||||
- 'LICENSE'
|
||||
- '**.md'
|
||||
branches:
|
||||
- 'main'
|
||||
|
||||
env:
|
||||
VERSION: ${{ github.event.inputs.VERSION || '3.9.9' }}
|
||||
defaults:
|
||||
run:
|
||||
shell: pwsh
|
||||
|
||||
jobs:
|
||||
build_python:
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
include:
|
||||
- platform: 'linux-18.04'
|
||||
os: 'ubuntu-18.04'
|
||||
arch: 'x64'
|
||||
- platform: 'linux-20.04'
|
||||
os: 'ubuntu-20.04'
|
||||
arch: 'x64'
|
||||
- platform: 'darwin'
|
||||
os: 'macos-10.15'
|
||||
arch: 'x64'
|
||||
- platform: 'win32'
|
||||
os: 'windows-2019'
|
||||
arch: 'x64'
|
||||
- platform: 'win32'
|
||||
os: 'windows-2019'
|
||||
arch: 'x86'
|
||||
runs-on: ${{ matrix.os }}
|
||||
env:
|
||||
ARTIFACT_NAME: python-${{ github.event.inputs.VERSION || '3.9.9' }}-${{ matrix.platform }}-${{ matrix.arch }}
|
||||
steps:
|
||||
|
||||
- name: Check out repository code
|
||||
uses: actions/checkout@v2
|
||||
with:
|
||||
submodules: true
|
||||
|
||||
- name: Build Python ${{ env.VERSION }}
|
||||
run: |
|
||||
./builders/build-python.ps1 -Version $env:VERSION `
|
||||
-Platform ${{ matrix.platform }} -Architecture ${{ matrix.arch }}
|
||||
|
||||
- name: Publish artifact
|
||||
uses: actions/upload-artifact@v2
|
||||
with:
|
||||
name: ${{ env.ARTIFACT_NAME }}
|
||||
path: ${{ runner.temp }}/artifact
|
||||
|
||||
test_python:
|
||||
needs: build_python
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
include:
|
||||
- platform: 'linux-18.04'
|
||||
os: 'ubuntu-18.04'
|
||||
arch: 'x64'
|
||||
- platform: 'linux-20.04'
|
||||
os: 'ubuntu-20.04'
|
||||
arch: 'x64'
|
||||
- platform: 'darwin'
|
||||
os: 'macos-10.15'
|
||||
arch: 'x64'
|
||||
- platform: 'win32'
|
||||
os: 'windows-2019'
|
||||
arch: 'x64'
|
||||
- platform: 'win32'
|
||||
os: 'windows-2019'
|
||||
arch: 'x86'
|
||||
runs-on: ${{ matrix.os }}
|
||||
env:
|
||||
ARTIFACT_NAME: python-${{ github.event.inputs.VERSION || '3.9.9' }}-${{ matrix.platform }}-${{ matrix.arch }}
|
||||
steps:
|
||||
|
||||
- name: Check out repository code
|
||||
uses: actions/checkout@v2
|
||||
with:
|
||||
submodules: true
|
||||
|
||||
- name: Fully cleanup the toolcache directory before testing
|
||||
run: ./helpers/clean-toolcache.ps1 -ToolName "Python"
|
||||
|
||||
- name: Download artifact
|
||||
uses: actions/download-artifact@v2
|
||||
with:
|
||||
path: ${{ runner.temp }}
|
||||
|
||||
- name: Extract files
|
||||
run: |
|
||||
if ('${{ matrix.platform }}' -eq 'win32') {
|
||||
$artifactName = "${{ env.ARTIFACT_NAME }}.zip"
|
||||
7z.exe x "$artifactName" -y | Out-Null
|
||||
} else {
|
||||
$artifactName = "${{ env.ARTIFACT_NAME }}.tar.gz"
|
||||
tar -xzf $artifactName
|
||||
}
|
||||
working-directory: ${{ runner.temp }}/${{ env.ARTIFACT_NAME }}
|
||||
|
||||
- name: Apply build artifact to the local machine
|
||||
run: |
|
||||
if ('${{ matrix.platform }}' -eq 'win32') {
|
||||
powershell ./setup.ps1
|
||||
} else {
|
||||
sh ./setup.sh
|
||||
cp ${{ runner.temp }}/${{ env.ARTIFACT_NAME }}/build_output.txt ${{ runner.temp }}
|
||||
}
|
||||
working-directory: ${{ runner.temp }}/${{ env.ARTIFACT_NAME }}
|
||||
|
||||
- name: Setup Python ${{ env.VERSION }}
|
||||
uses: actions/setup-python@v2
|
||||
with:
|
||||
python-version: ${{ env.VERSION }}
|
||||
architecture: ${{ matrix.arch }}
|
||||
|
||||
- name: Verbose sysconfig dump
|
||||
if: runner.os == 'Linux' || runner.os == 'macOS'
|
||||
run: python ./sources/python-config-output.py
|
||||
working-directory: ${{ github.workspace }}/tests
|
||||
|
||||
- name: Verbose python binary links
|
||||
if: runner.os == 'Linux' || runner.os == 'macOS'
|
||||
run: |
|
||||
$pythonLocation = which python
|
||||
if ('${{ matrix.platform }}' -eq 'darwin') { otool -L $pythonLocation } else { ldd $pythonLocation }
|
||||
|
||||
- name: Run tests
|
||||
run: |
|
||||
Install-Module Pester -Force -Scope CurrentUser
|
||||
Import-Module Pester
|
||||
$pesterContainer = New-PesterContainer -Path './python-tests.ps1' -Data @{
|
||||
Version="${{ env.VERSION }}";
|
||||
Platform="${{ matrix.platform }}";
|
||||
}
|
||||
$Result = Invoke-Pester -Container $pesterContainer -PassThru
|
||||
if ($Result.FailedCount -gt 0) {
|
||||
$host.SetShouldExit($Result.FailedCount)
|
||||
exit $Result.FailedCount
|
||||
}
|
||||
working-directory: ${{ github.workspace }}/tests
|
||||
|
||||
publish_release:
|
||||
name: Publish release
|
||||
if: github.event_name == 'workflow_dispatch' && github.event.inputs.PUBLISH_RELEASES == 'true'
|
||||
needs: test_python
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/download-artifact@v2
|
||||
|
||||
- name: Publish Release ${{ env.VERSION }}
|
||||
id: create_release
|
||||
uses: actions/create-release@v1
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
with:
|
||||
tag_name: ${{ env.VERSION }}-${{ github.run_id }}
|
||||
release_name: ${{ env.VERSION }}
|
||||
body: |
|
||||
Python ${{ env.VERSION }}
|
||||
|
||||
- name: Upload release assets
|
||||
uses: actions/github-script@v2
|
||||
with:
|
||||
github-token: ${{ secrets.GITHUB_TOKEN }}
|
||||
script: |
|
||||
const fs = require('fs');
|
||||
for (let artifactDir of fs.readdirSync('.')) {
|
||||
let artifactName = fs.readdirSync(`${artifactDir}`)[0];
|
||||
console.log(`Upload ${artifactName} asset`);
|
||||
github.repos.uploadReleaseAsset({
|
||||
owner: context.repo.owner,
|
||||
repo: context.repo.repo,
|
||||
release_id: ${{ steps.create_release.outputs.id }},
|
||||
name: artifactName,
|
||||
data: fs.readFileSync(`./${artifactDir}/${artifactName}`)
|
||||
});
|
||||
}
|
||||
|
||||
trigger_pr:
|
||||
name: Trigger "Create Pull Request" workflow
|
||||
needs: publish_release
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Trigger "Create Pull Request" workflow
|
||||
uses: actions/github-script@v3
|
||||
with:
|
||||
github-token: ${{ secrets.PERSONAL_TOKEN }}
|
||||
script: |
|
||||
github.actions.createWorkflowDispatch({
|
||||
owner: context.repo.owner,
|
||||
repo: context.repo.repo,
|
||||
workflow_id: 'create-pr.yml',
|
||||
ref: 'main'
|
||||
});
|
||||
|
||||
@@ -6,7 +6,7 @@ stages:
|
||||
- stage: Build_Python_MacOS
|
||||
dependsOn: []
|
||||
variables:
|
||||
VmImage: 'macOS-10.14'
|
||||
VmImage: 'macOS-10.15'
|
||||
Platform: darwin
|
||||
Architecture: x64
|
||||
jobs:
|
||||
@@ -16,7 +16,7 @@ stages:
|
||||
condition: succeeded()
|
||||
dependsOn: Build_Python_MacOS
|
||||
variables:
|
||||
VmImage: 'macOS-10.14'
|
||||
VmImage: 'macOS-10.15'
|
||||
Platform: darwin
|
||||
Architecture: x64
|
||||
jobs:
|
||||
@@ -63,7 +63,7 @@ stages:
|
||||
- stage: Build_Python_X64_Windows
|
||||
dependsOn: []
|
||||
variables:
|
||||
VmImage: 'vs2017-win2016'
|
||||
VmImage: 'windows-2019'
|
||||
Platform: win32
|
||||
Architecture: x64
|
||||
jobs:
|
||||
@@ -73,7 +73,7 @@ stages:
|
||||
condition: succeeded()
|
||||
dependsOn: Build_Python_X64_Windows
|
||||
variables:
|
||||
VmImage: 'vs2017-win2016'
|
||||
VmImage: 'windows-2019'
|
||||
Platform: win32
|
||||
Architecture: x64
|
||||
jobs:
|
||||
@@ -82,7 +82,7 @@ stages:
|
||||
- stage: Build_Python_x86_Windows
|
||||
dependsOn: []
|
||||
variables:
|
||||
VmImage: 'vs2017-win2016'
|
||||
VmImage: 'windows-2019'
|
||||
Platform: win32
|
||||
Architecture: x86
|
||||
jobs:
|
||||
@@ -92,7 +92,7 @@ stages:
|
||||
condition: succeeded()
|
||||
dependsOn: Build_Python_x86_Windows
|
||||
variables:
|
||||
VmImage: 'vs2017-win2016'
|
||||
VmImage: 'windows-2019'
|
||||
Platform: win32
|
||||
Architecture: x86
|
||||
jobs:
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
jobs:
|
||||
- job: Test_Python
|
||||
pool:
|
||||
pool:
|
||||
name: Azure Pipelines
|
||||
vmImage: $(VmImage)
|
||||
variables:
|
||||
|
||||
@@ -22,6 +22,13 @@ class macOSPythonBuilder : NixPythonBuilder {
|
||||
[string] $platform
|
||||
) : Base($version, $architecture, $platform) { }
|
||||
|
||||
[void] PrepareEnvironment() {
|
||||
<#
|
||||
.SYNOPSIS
|
||||
Prepare system environment by installing dependencies and required packages.
|
||||
#>
|
||||
}
|
||||
|
||||
[void] Configure() {
|
||||
<#
|
||||
.SYNOPSIS
|
||||
@@ -40,8 +47,8 @@ class macOSPythonBuilder : NixPythonBuilder {
|
||||
### and then add the appropriate paths for the header and library files to configure command.
|
||||
### Link to documentation (https://cpython-devguide.readthedocs.io/setup/#build-dependencies)
|
||||
if ($this.Version -lt "3.7.0") {
|
||||
$env:LDFLAGS = "-L/usr/local/opt/openssl@1.1/lib"
|
||||
$env:CFLAGS = "-I/usr/local/opt/openssl@1.1/include"
|
||||
$env:LDFLAGS = "-L/usr/local/opt/openssl@1.1/lib -L/usr/local/opt/zlib/lib"
|
||||
$env:CFLAGS = "-I/usr/local/opt/openssl@1.1/include -I/usr/local/opt/zlib/include"
|
||||
} else {
|
||||
$configureString += " --with-openssl=/usr/local/opt/openssl@1.1"
|
||||
}
|
||||
@@ -57,15 +64,4 @@ class macOSPythonBuilder : NixPythonBuilder {
|
||||
|
||||
Execute-Command -Command $configureString
|
||||
}
|
||||
|
||||
[void] PrepareEnvironment() {
|
||||
<#
|
||||
.SYNOPSIS
|
||||
Prepare system environment by installing dependencies and required packages.
|
||||
#>
|
||||
|
||||
### reinstall header files to Avoid issue with X11 headers on Mojave
|
||||
$pkgName = "/Library/Developer/CommandLineTools/Packages/macOS_SDK_headers_for_macOS_10.14.pkg"
|
||||
Execute-Command -Command "sudo installer -pkg $pkgName -target /"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -41,10 +41,16 @@ class PythonBuilder {
|
||||
PythonBuilder ([semver] $version, [string] $architecture, [string] $platform) {
|
||||
$this.InstallationTemplatesLocation = Join-Path -Path $PSScriptRoot -ChildPath "../installers"
|
||||
|
||||
$this.HostedToolcacheLocation = $env:AGENT_TOOLSDIRECTORY
|
||||
$this.TempFolderLocation = $env:BUILD_SOURCESDIRECTORY
|
||||
$this.WorkFolderLocation = $env:BUILD_BINARIESDIRECTORY
|
||||
$this.ArtifactFolderLocation = $env:BUILD_STAGINGDIRECTORY
|
||||
$artifactDirectory = Join-Path $env:RUNNER_TEMP "artifact"
|
||||
$workDirectory = Join-Path $env:RUNNER_TEMP "work"
|
||||
|
||||
New-Item -Force -Type Directory $artifactDirectory
|
||||
New-Item -Force -Type Directory $workDirectory
|
||||
|
||||
$this.HostedToolcacheLocation = $env:RUNNER_TOOL_CACHE
|
||||
$this.TempFolderLocation = $env:RUNNER_TEMP
|
||||
$this.WorkFolderLocation = $workDirectory
|
||||
$this.ArtifactFolderLocation = $artifactDirectory
|
||||
|
||||
$this.Version = $version
|
||||
$this.Architecture = $architecture
|
||||
|
||||
@@ -9,29 +9,31 @@ Import-Module (Join-Path $PSScriptRoot "../helpers/pester-extensions.psm1")
|
||||
Import-Module (Join-Path $PSScriptRoot "../helpers/common-helpers.psm1")
|
||||
Import-Module (Join-Path $PSScriptRoot "../builders/python-version.psm1")
|
||||
|
||||
function Analyze-MissingModules([string] $buildOutputLocation) {
|
||||
$searchStringStart = "Failed to build these modules:"
|
||||
$searchStringEnd = "running build_scripts"
|
||||
$pattern = "$searchStringStart(.*?)$searchStringEnd"
|
||||
BeforeAll {
|
||||
function Analyze-MissingModules([string] $buildOutputLocation) {
|
||||
$searchStringStart = "Failed to build these modules:"
|
||||
$searchStringEnd = "running build_scripts"
|
||||
$pattern = "$searchStringStart(.*?)$searchStringEnd"
|
||||
|
||||
$buildContent = Get-Content -Path $buildOutputLocation
|
||||
$splitBuiltOutput = $buildContent -split "\n";
|
||||
$buildContent = Get-Content -Path $buildOutputLocation
|
||||
$splitBuiltOutput = $buildContent -split "\n";
|
||||
|
||||
### Search for missing modules that are displayed between the search strings
|
||||
$regexMatch = [regex]::match($SplitBuiltOutput, $Pattern)
|
||||
if ($regexMatch.Success)
|
||||
{
|
||||
$module = $regexMatch.Groups[1].Value.Trim()
|
||||
Write-Host "Failed missing modules:"
|
||||
Write-Host $module
|
||||
if ( ($module -eq "_tkinter") -and ( [semver]"$($Version.Major).$($Version.Minor)" -ge [semver]"3.10" -and $Version.PreReleaseLabel ) ) {
|
||||
Write-Host "$module $Version ignored"
|
||||
} else {
|
||||
return 1
|
||||
### Search for missing modules that are displayed between the search strings
|
||||
$regexMatch = [regex]::match($SplitBuiltOutput, $Pattern)
|
||||
if ($regexMatch.Success)
|
||||
{
|
||||
$module = $regexMatch.Groups[1].Value.Trim()
|
||||
Write-Host "Failed missing modules:"
|
||||
Write-Host $module
|
||||
if ( ($module -eq "_tkinter") -and ( [semver]"$($Version.Major).$($Version.Minor)" -ge [semver]"3.10" -and $Version.PreReleaseLabel ) ) {
|
||||
Write-Host "$module $Version ignored"
|
||||
} else {
|
||||
return 1
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return 0
|
||||
return 0
|
||||
}
|
||||
}
|
||||
|
||||
Describe "Tests" {
|
||||
@@ -39,7 +41,7 @@ Describe "Tests" {
|
||||
"python --version" | Should -ReturnZeroExitCode
|
||||
$pythonLocation = (Get-Command "python").Path
|
||||
$pythonLocation | Should -Not -BeNullOrEmpty
|
||||
$expectedPath = Join-Path -Path $env:AGENT_TOOLSDIRECTORY -ChildPath "Python"
|
||||
$expectedPath = Join-Path -Path $env:RUNNER_TOOL_CACHE -ChildPath "Python"
|
||||
$pythonLocation.startsWith($expectedPath) | Should -BeTrue
|
||||
}
|
||||
|
||||
@@ -47,7 +49,7 @@ Describe "Tests" {
|
||||
"python ./sources/simple-test.py" | Should -ReturnZeroExitCode
|
||||
}
|
||||
|
||||
if ($Version -ge "3.2.0") {
|
||||
if (($Version -ge "3.2.0") -and -not ([semver]"$($Version.Major).$($Version.Minor)" -eq [semver]"3.11" -and $Version.PreReleaseLabel)) {
|
||||
It "Check if sqlite3 module is installed" {
|
||||
"python ./sources/python-sqlite3.py" | Should -ReturnZeroExitCode
|
||||
}
|
||||
@@ -61,7 +63,7 @@ Describe "Tests" {
|
||||
if (IsNixPlatform $Platform) {
|
||||
|
||||
It "Check for failed modules in build_output" {
|
||||
$buildOutputLocation = Join-Path $env:BUILD_BINARIESDIRECTORY "build_output.txt"
|
||||
$buildOutputLocation = Join-Path $env:RUNNER_TEMP "build_output.txt"
|
||||
Analyze-MissingModules $buildOutputLocation | Should -Be 0
|
||||
}
|
||||
|
||||
|
||||
@@ -1,4 +1,82 @@
|
||||
[
|
||||
{
|
||||
"version": "3.11.0-alpha.4",
|
||||
"stable": false,
|
||||
"release_url": "https://github.com/actions/python-versions/releases/tag/3.11.0-alpha.4-1754961913",
|
||||
"files": [
|
||||
{
|
||||
"filename": "python-3.11.0-alpha.4-darwin-x64.tar.gz",
|
||||
"arch": "x64",
|
||||
"platform": "darwin",
|
||||
"download_url": "https://github.com/actions/python-versions/releases/download/3.11.0-alpha.4-1754961913/python-3.11.0-alpha.4-darwin-x64.tar.gz"
|
||||
},
|
||||
{
|
||||
"filename": "python-3.11.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.11.0-alpha.4-1754961913/python-3.11.0-alpha.4-linux-18.04-x64.tar.gz"
|
||||
},
|
||||
{
|
||||
"filename": "python-3.11.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.11.0-alpha.4-1754961913/python-3.11.0-alpha.4-linux-20.04-x64.tar.gz"
|
||||
},
|
||||
{
|
||||
"filename": "python-3.11.0-alpha.4-win32-x64.zip",
|
||||
"arch": "x64",
|
||||
"platform": "win32",
|
||||
"download_url": "https://github.com/actions/python-versions/releases/download/3.11.0-alpha.4-1754961913/python-3.11.0-alpha.4-win32-x64.zip"
|
||||
},
|
||||
{
|
||||
"filename": "python-3.11.0-alpha.4-win32-x86.zip",
|
||||
"arch": "x86",
|
||||
"platform": "win32",
|
||||
"download_url": "https://github.com/actions/python-versions/releases/download/3.11.0-alpha.4-1754961913/python-3.11.0-alpha.4-win32-x86.zip"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"version": "3.11.0-alpha.3",
|
||||
"stable": false,
|
||||
"release_url": "https://github.com/actions/python-versions/releases/tag/3.11.0-alpha.3-120611",
|
||||
"files": [
|
||||
{
|
||||
"filename": "python-3.11.0-alpha.3-darwin-x64.tar.gz",
|
||||
"arch": "x64",
|
||||
"platform": "darwin",
|
||||
"download_url": "https://github.com/actions/python-versions/releases/download/3.11.0-alpha.3-120611/python-3.11.0-alpha.3-darwin-x64.tar.gz"
|
||||
},
|
||||
{
|
||||
"filename": "python-3.11.0-alpha.3-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.11.0-alpha.3-120611/python-3.11.0-alpha.3-linux-18.04-x64.tar.gz"
|
||||
},
|
||||
{
|
||||
"filename": "python-3.11.0-alpha.3-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.11.0-alpha.3-120611/python-3.11.0-alpha.3-linux-20.04-x64.tar.gz"
|
||||
},
|
||||
{
|
||||
"filename": "python-3.11.0-alpha.3-win32-x64.zip",
|
||||
"arch": "x64",
|
||||
"platform": "win32",
|
||||
"download_url": "https://github.com/actions/python-versions/releases/download/3.11.0-alpha.3-120611/python-3.11.0-alpha.3-win32-x64.zip"
|
||||
},
|
||||
{
|
||||
"filename": "python-3.11.0-alpha.3-win32-x86.zip",
|
||||
"arch": "x86",
|
||||
"platform": "win32",
|
||||
"download_url": "https://github.com/actions/python-versions/releases/download/3.11.0-alpha.3-120611/python-3.11.0-alpha.3-win32-x86.zip"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"version": "3.11.0-alpha.2",
|
||||
"stable": false,
|
||||
@@ -77,6 +155,72 @@
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"version": "3.10.2",
|
||||
"stable": true,
|
||||
"release_url": "https://github.com/actions/python-versions/releases/tag/3.10.2-121429",
|
||||
"files": [
|
||||
{
|
||||
"filename": "python-3.10.2-darwin-x64.tar.gz",
|
||||
"arch": "x64",
|
||||
"platform": "darwin",
|
||||
"download_url": "https://github.com/actions/python-versions/releases/download/3.10.2-121429/python-3.10.2-darwin-x64.tar.gz"
|
||||
},
|
||||
{
|
||||
"filename": "python-3.10.2-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.2-121429/python-3.10.2-linux-18.04-x64.tar.gz"
|
||||
},
|
||||
{
|
||||
"filename": "python-3.10.2-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.2-121429/python-3.10.2-linux-20.04-x64.tar.gz"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"version": "3.10.1",
|
||||
"stable": true,
|
||||
"release_url": "https://github.com/actions/python-versions/releases/tag/3.10.1-120613",
|
||||
"files": [
|
||||
{
|
||||
"filename": "python-3.10.1-darwin-x64.tar.gz",
|
||||
"arch": "x64",
|
||||
"platform": "darwin",
|
||||
"download_url": "https://github.com/actions/python-versions/releases/download/3.10.1-120613/python-3.10.1-darwin-x64.tar.gz"
|
||||
},
|
||||
{
|
||||
"filename": "python-3.10.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.10.1-120613/python-3.10.1-linux-18.04-x64.tar.gz"
|
||||
},
|
||||
{
|
||||
"filename": "python-3.10.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.10.1-120613/python-3.10.1-linux-20.04-x64.tar.gz"
|
||||
},
|
||||
{
|
||||
"filename": "python-3.10.1-win32-x64.zip",
|
||||
"arch": "x64",
|
||||
"platform": "win32",
|
||||
"download_url": "https://github.com/actions/python-versions/releases/download/3.10.1-120613/python-3.10.1-win32-x64.zip"
|
||||
},
|
||||
{
|
||||
"filename": "python-3.10.1-win32-x86.zip",
|
||||
"arch": "x86",
|
||||
"platform": "win32",
|
||||
"download_url": "https://github.com/actions/python-versions/releases/download/3.10.1-120613/python-3.10.1-win32-x86.zip"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"version": "3.10.0",
|
||||
"stable": true,
|
||||
@@ -693,6 +837,84 @@
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"version": "3.9.10",
|
||||
"stable": true,
|
||||
"release_url": "https://github.com/actions/python-versions/releases/tag/3.9.10-1788162477",
|
||||
"files": [
|
||||
{
|
||||
"filename": "python-3.9.10-darwin-x64.tar.gz",
|
||||
"arch": "x64",
|
||||
"platform": "darwin",
|
||||
"download_url": "https://github.com/actions/python-versions/releases/download/3.9.10-1788162477/python-3.9.10-darwin-x64.tar.gz"
|
||||
},
|
||||
{
|
||||
"filename": "python-3.9.10-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.9.10-1788162477/python-3.9.10-linux-18.04-x64.tar.gz"
|
||||
},
|
||||
{
|
||||
"filename": "python-3.9.10-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.9.10-1788162477/python-3.9.10-linux-20.04-x64.tar.gz"
|
||||
},
|
||||
{
|
||||
"filename": "python-3.9.10-win32-x64.zip",
|
||||
"arch": "x64",
|
||||
"platform": "win32",
|
||||
"download_url": "https://github.com/actions/python-versions/releases/download/3.9.10-1788162477/python-3.9.10-win32-x64.zip"
|
||||
},
|
||||
{
|
||||
"filename": "python-3.9.10-win32-x86.zip",
|
||||
"arch": "x86",
|
||||
"platform": "win32",
|
||||
"download_url": "https://github.com/actions/python-versions/releases/download/3.9.10-1788162477/python-3.9.10-win32-x86.zip"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"version": "3.9.9",
|
||||
"stable": true,
|
||||
"release_url": "https://github.com/actions/python-versions/releases/tag/3.9.9-119268",
|
||||
"files": [
|
||||
{
|
||||
"filename": "python-3.9.9-darwin-x64.tar.gz",
|
||||
"arch": "x64",
|
||||
"platform": "darwin",
|
||||
"download_url": "https://github.com/actions/python-versions/releases/download/3.9.9-119268/python-3.9.9-darwin-x64.tar.gz"
|
||||
},
|
||||
{
|
||||
"filename": "python-3.9.9-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.9.9-119268/python-3.9.9-linux-18.04-x64.tar.gz"
|
||||
},
|
||||
{
|
||||
"filename": "python-3.9.9-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.9.9-119268/python-3.9.9-linux-20.04-x64.tar.gz"
|
||||
},
|
||||
{
|
||||
"filename": "python-3.9.9-win32-x64.zip",
|
||||
"arch": "x64",
|
||||
"platform": "win32",
|
||||
"download_url": "https://github.com/actions/python-versions/releases/download/3.9.9-119268/python-3.9.9-win32-x64.zip"
|
||||
},
|
||||
{
|
||||
"filename": "python-3.9.9-win32-x86.zip",
|
||||
"arch": "x86",
|
||||
"platform": "win32",
|
||||
"download_url": "https://github.com/actions/python-versions/releases/download/3.9.9-119268/python-3.9.9-win32-x86.zip"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"version": "3.9.8",
|
||||
"stable": true,
|
||||
|
||||
Reference in New Issue
Block a user