From 8ef7da4d0c78565938da6f2043ad529f2face7f6 Mon Sep 17 00:00:00 2001 From: tr4nt0r <4445816+tr4nt0r@users.noreply.github.com> Date: Sat, 28 Feb 2026 16:02:04 +0100 Subject: [PATCH] Use Github action to set up Hatch build environment --- .github/workflows/build.yml | 9 ++++----- .github/workflows/documentation.yml | 8 ++------ 2 files changed, 6 insertions(+), 11 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 592cc32..1620807 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -10,8 +10,8 @@ jobs: runs-on: ${{ matrix.os }} steps: - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6 - - name: Install dependencies - run: pipx install hatch + - name: Install Hatch + uses: pypa/hatch@install - name: Lint and typecheck run: | hatch fmt --linter @@ -36,9 +36,8 @@ jobs: steps: - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6 - - name: Install dependencies - shell: bash - run: pipx install hatch + - name: Install Hatch + uses: pypa/hatch@install - name: mint API token id: mint-token run: | diff --git a/.github/workflows/documentation.yml b/.github/workflows/documentation.yml index d02e4b1..b1b1938 100644 --- a/.github/workflows/documentation.yml +++ b/.github/workflows/documentation.yml @@ -28,12 +28,8 @@ jobs: steps: - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6 - - name: Set up Python - uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6 - - name: Install dependencies - run: | - pipx install hatch - hatch env create + - name: Install Hatch + uses: pypa/hatch@install - name: Build run: hatch run docs-build - name: Upload artifact