[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:
sergei-pyshnoi
2024-03-18 18:34:52 +01:00
committed by GitHub
parent f73cc2503f
commit 250c5145f6
5 changed files with 18 additions and 12 deletions

View File

@@ -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" {