mirror of
https://github.com/actions/python-versions.git
synced 2025-12-16 07:46:47 +00:00
Compare commits
4 Commits
fix-macos-
...
ubuntu-24.
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
27021dcea9 | ||
|
|
3d38d040a7 | ||
|
|
15da69164a | ||
|
|
77a5f8b588 |
@@ -18,22 +18,16 @@ BeforeAll {
|
|||||||
$pattern = "$searchStringStart(.*?)$searchStringEnd"
|
$pattern = "$searchStringStart(.*?)$searchStringEnd"
|
||||||
|
|
||||||
$buildContent = Get-Content -Path $buildOutputLocation
|
$buildContent = Get-Content -Path $buildOutputLocation
|
||||||
$splitBuiltOutput = $buildContent -split "\n"
|
$splitBuiltOutput = $buildContent -split "\n";
|
||||||
|
|
||||||
### Search for missing modules that are displayed between the search strings
|
### Search for missing modules that are displayed between the search strings
|
||||||
$regexMatch = [regex]::match($splitBuiltOutput, $pattern)
|
$regexMatch = [regex]::match($SplitBuiltOutput, $Pattern)
|
||||||
if ($regexMatch.Success) {
|
if ($regexMatch.Success)
|
||||||
|
{
|
||||||
$module = $regexMatch.Groups[1].Value.Trim()
|
$module = $regexMatch.Groups[1].Value.Trim()
|
||||||
Write-Host "Failed missing modules:"
|
Write-Host "Failed missing modules:"
|
||||||
Write-Host $module
|
Write-Host $module
|
||||||
try {
|
if ( ($module -eq "_tkinter") -and ( [semver]"$($Version.Major).$($Version.Minor)" -ge [semver]"3.10" -and $Version.PreReleaseLabel ) ) {
|
||||||
$semver = [semver]"$($Version.Major).$($Version.Minor)"
|
|
||||||
} catch {
|
|
||||||
Write-Error "Invalid Semantic Version format: $Version"
|
|
||||||
return 1
|
|
||||||
}
|
|
||||||
|
|
||||||
if (($module -eq "_tkinter") -and ($semver -ge [semver]"3.8")) {
|
|
||||||
Write-Host "$module $Version ignored"
|
Write-Host "$module $Version ignored"
|
||||||
} else {
|
} else {
|
||||||
return 1
|
return 1
|
||||||
@@ -41,7 +35,7 @@ BeforeAll {
|
|||||||
}
|
}
|
||||||
|
|
||||||
return 0
|
return 0
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Describe "Tests" {
|
Describe "Tests" {
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user