mirror of
https://github.com/actions/runner-images.git
synced 2025-12-20 06:35:47 +00:00
12 lines
531 B
PowerShell
12 lines
531 B
PowerShell
$pipxToolset = (Get-ToolsetContent).pipx
|
|
foreach($tool in $pipxToolset) {
|
|
if ($tool.python) {
|
|
$pythonPath = (Get-Item -Path "${env:AGENT_TOOLSDIRECTORY}\Python\${tool.python}.*\x64\python-${tool.python}*").FullName
|
|
Write-Host "Install ${tool.package} into python ${tool.python}"
|
|
pipx install $tool.package --python $pythonPath
|
|
} else {
|
|
Write-Host "Install ${tool.package} into default python"
|
|
pipx install $tool.package
|
|
}
|
|
}
|
|
Invoke-PesterTests -TestFile "PipxPackages" |