mirror of
https://github.com/actions/runner-images.git
synced 2025-12-26 19:38:57 +08:00
* add missing tests * fix naming and nvm test * fix containers test and bring pwsh test back * remove pwsh test * small fix
25 lines
891 B
Bash
25 lines
891 B
Bash
#!/bin/bash -e
|
|
################################################################################
|
|
## File: pipx-packages.sh
|
|
## Desc: Install tools via pipx
|
|
################################################################################
|
|
|
|
export PATH="$PATH:/opt/pipx_bin"
|
|
|
|
toolset="$INSTALLER_SCRIPT_FOLDER/toolset.json"
|
|
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="/opt/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 "Common" "PipxPackages" |