Skip to content

Commit 58ae76f

Browse files
committed
docs: Make use of poetry and update tools
1 parent c36d81b commit 58ae76f

File tree

1 file changed

+6
-17
lines changed

1 file changed

+6
-17
lines changed

.github/workflows/docs-action.yml

Lines changed: 6 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ jobs:
2828
- name: Setup venv
2929
run: |
3030
python3 -m venv .venv
31+
.venv/bin/python -m pip install poetry
3132
3233
- uses: dtolnay/rust-toolchain@nightly
3334

@@ -40,27 +41,15 @@ jobs:
4041
- name: Install Protoc
4142
uses: arduino/setup-protoc@v2
4243
with:
43-
version: "23.2"
44+
version: "27.1"
4445
repo-token: ${{ secrets.GITHUB_TOKEN }}
4546

4647
- name: Install dependencies
4748
run: |
48-
.venv/bin/pip install \
49-
grpcio \
50-
grpcio-tools \
51-
"protobuf==3.20.3" \
52-
mkdocs \
53-
pdoc \
54-
mkdocs-material \
55-
mkdocs-redirects \
56-
pymdown-extensions \
57-
ghp-import \
58-
pdoc \
59-
cairosvg \
60-
pillow \
61-
typing_extensions \
62-
mypy
63-
49+
cd libs/gl-client-py/
50+
poetry export --without-hashes --with=docs > /tmp/requirements.txt
51+
.venv/bin/pip install -U -r /tmp/requirements.txt
52+
6453
- name: Build and install gl-client-py
6554
run: |
6655
(cd libs/gl-client-py; ../../.venv/bin/maturin develop)

0 commit comments

Comments
 (0)