Skip to content

Commit 5f3507d

Browse files
authored
Update docs actions (#4)
1 parent 0a8e563 commit 5f3507d

File tree

3 files changed

+12
-5
lines changed

3 files changed

+12
-5
lines changed

.github/workflows/docs-check.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,13 @@ jobs:
1616
with:
1717
python-version: 3.9
1818

19+
- name: Install Poetry
20+
uses: snok/install-poetry@v1
21+
with:
22+
virtualenvs-in-project: true
1923
- name: Install dependencies
2024
run: |
21-
python -m pip install --upgrade pip
22-
pip install ".[dev]"
25+
poetry install --all-extras
2326
2427
- name: Build documentation
2528
run: mkdocs build --strict 2>&1 | tee build-log.txt

.github/workflows/docs.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,13 @@ jobs:
2121
- uses: actions/setup-python@v4
2222
with:
2323
python-version: 3.9
24-
24+
- name: Install Poetry
25+
uses: snok/install-poetry@v1
26+
with:
27+
virtualenvs-in-project: true
2528
- name: Install dependencies
2629
run: |
27-
python -m pip install --upgrade pip
28-
pip install ".[dev]"
30+
poetry install --all-extras
2931
3032
- name: Deploy documentation
3133
run: mkdocs gh-deploy --force

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
build-log.txt
2+
13
# Byte-compiled / optimized / DLL files
24
__pycache__/
35
*.py[cod]

0 commit comments

Comments
 (0)