Skip to content

Commit c20b288

Browse files
committed
migrate from poetry to use hatch
1 parent e121751 commit c20b288

File tree

3 files changed

+45
-1935
lines changed

3 files changed

+45
-1935
lines changed

.github/workflows/docs.yml

Lines changed: 3 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -30,27 +30,11 @@ jobs:
3030
with:
3131
python-version: '3.11'
3232

33-
- name: Install Poetry
34-
uses: snok/install-poetry@v1
35-
with:
36-
version: latest
37-
virtualenvs-create: true
38-
virtualenvs-in-project: true
39-
40-
- name: Load cached venv
41-
id: cached-poetry-dependencies
42-
uses: actions/cache@v3
43-
with:
44-
path: .venv
45-
key: venv-${{ runner.os }}-${{ steps.setup-python.outputs.python-version }}-${{ hashFiles('**/poetry.lock') }}
46-
47-
- name: Install dependencies
48-
if: steps.cached-poetry-dependencies.outputs.cache-hit != 'true'
49-
run: poetry install --only=dev
33+
- name: Install Hatch
34+
run: pip install hatch
5035

5136
- name: Build documentation
52-
run: |
53-
poetry run python -W ignore::DeprecationWarning:mkdocs_autorefs -m mkdocs build --clean --strict
37+
run: hatch run docs-build
5438

5539
- name: Setup Pages
5640
if: github.ref == 'refs/heads/master'

0 commit comments

Comments
 (0)