mirror of
https://github.com/actions/runner-images.git
synced 2026-01-03 16:49:11 +08:00
* [macOS] Fail Pester tests on error * return it back * [macOS] Pester tests invokation after install * fix nitpicks * CocoaPods fix
22 lines
705 B
Bash
22 lines
705 B
Bash
#!/bin/bash -e -o pipefail
|
|
source ~/utils/utils.sh
|
|
source ~/utils/invoke-tests.sh
|
|
|
|
export PATH="$PATH:/opt/pipx_bin"
|
|
|
|
toolset=$(get_toolset_path)
|
|
pipx_packages=$(jq -r ".pipx[] .package" $toolset)
|
|
|
|
for package in $pipx_packages; do
|
|
python_version=$(jq -r ".pipx[] | select(.package == \"$package\") .python" $toolset)
|
|
if [ "$python_version" != "null" ]; then
|
|
python_path="$HOME/hostedtoolcache/Python/$python_version*/x64/bin/python$python_version"
|
|
echo "Install $package into python $python_path"
|
|
pipx install $package --python $python_path
|
|
else
|
|
echo "Install $package into default python"
|
|
pipx install $package
|
|
fi
|
|
done
|
|
|
|
invoke_tests "PipxPackages" |