mirror of
https://github.com/actions/runner-images.git
synced 2025-12-12 20:26:49 +00:00
[MacOS] Add install-python.sh to arm64 templates (#9474)
* add install-python.sh to arm64 templates * add Pipx pester test * Update Python.Tests.ps1 * bump python version
This commit is contained in:
@@ -3,13 +3,19 @@ Import-Module "$PSScriptRoot/Helpers.psm1" -DisableNameChecking
|
||||
|
||||
$os = Get-OSVersion
|
||||
|
||||
Describe "Python3" -Skip:($os.IsVenturaArm64 -or $os.IsSonomaArm64) {
|
||||
Describe "Python3" {
|
||||
It "Python 3 is available" {
|
||||
"python3 --version" | Should -ReturnZeroExitCode
|
||||
}
|
||||
|
||||
It "Python 3 is installed under /usr/local/bin" {
|
||||
Get-ToolPath "python3" | Should -BeLike "/usr/local/bin*"
|
||||
|
||||
if ($os.IsVenturaArm64 -or $os.IsSonomaArm64) {
|
||||
It "Python 3 is installed under /opt/homebrew/bin/" {
|
||||
Get-ToolPath "python3" | Should -BeLike "/opt/homebrew/bin/*"
|
||||
}
|
||||
} else {
|
||||
It "Python 3 is installed under /usr/local/bin" {
|
||||
Get-ToolPath "python3" | Should -BeLike "/usr/local/bin*"
|
||||
}
|
||||
}
|
||||
|
||||
It "Pip 3 is available" {
|
||||
|
||||
Reference in New Issue
Block a user