Skip to content

Commit 6198a42

Browse files
authored
Use Github action to set up Hatch build environment (#137)
1 parent e0db9be commit 6198a42

2 files changed

Lines changed: 6 additions & 11 deletions

File tree

.github/workflows/build.yml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ jobs:
1010
runs-on: ${{ matrix.os }}
1111
steps:
1212
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
13-
- name: Install dependencies
14-
run: pipx install hatch
13+
- name: Install Hatch
14+
uses: pypa/hatch@install
1515
- name: Lint and typecheck
1616
run: |
1717
hatch fmt --linter
@@ -36,9 +36,8 @@ jobs:
3636

3737
steps:
3838
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
39-
- name: Install dependencies
40-
shell: bash
41-
run: pipx install hatch
39+
- name: Install Hatch
40+
uses: pypa/hatch@install
4241
- name: mint API token
4342
id: mint-token
4443
run: |

.github/workflows/documentation.yml

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,8 @@ jobs:
2828

2929
steps:
3030
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
31-
- name: Set up Python
32-
uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6
33-
- name: Install dependencies
34-
run: |
35-
pipx install hatch
36-
hatch env create
31+
- name: Install Hatch
32+
uses: pypa/hatch@install
3733
- name: Build
3834
run: hatch run docs-build
3935
- name: Upload artifact

0 commit comments

Comments
 (0)