Skip to content

Commit

Permalink
Use hatch install action (#236)
Browse files Browse the repository at this point in the history
  • Loading branch information
blink1073 authored May 27, 2024
1 parent 08a5b0f commit 4c96ea3
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions .github/actions/base-setup/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -108,17 +108,15 @@ runs:
run: Set-ItemProperty -Path HKLM:\SYSTEM\CurrentControlSet\Control\FileSystem -Name LongPathsEnabled -Value 1
shell: pwsh

- name: Upgrade packaging dependencies
- name: Install Hatch
uses: pypa/hatch@install

- name: Upgrade pip
shell: bash
run: |
set -eux
echo "::group::Upgrade packaging dependencies"
echo "::group::Upgrade pip"
python -m pip install --upgrade pip
if [ "$RUNNER_OS" != "Windows" ]; then
pipx install hatch --python $(which python)
else
pipx install hatch
fi
echo "::endgroup::"
- name: Handle dependency type
Expand Down

0 comments on commit 4c96ea3

Please sign in to comment.