From 512a51d1c9843762a0100ed9d7bb9ada14374ff0 Mon Sep 17 00:00:00 2001 From: Steven Silvester Date: Sat, 16 Dec 2023 09:20:31 -0600 Subject: [PATCH] Install hatch with global python (#217) --- .github/actions/base-setup/action.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/actions/base-setup/action.yml b/.github/actions/base-setup/action.yml index 3dd8d9b..9624990 100644 --- a/.github/actions/base-setup/action.yml +++ b/.github/actions/base-setup/action.yml @@ -114,7 +114,11 @@ runs: set -eux echo "::group::Upgrade packaging dependencies" python -m pip install --upgrade pip - pipx install hatch + if [ "$RUNNER_OS" != "Windows"]; then + pipx install hatch --python $(which python) + else + pipx install hatch + fi echo "::endgroup::" - name: Handle dependency type