File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -16,35 +16,16 @@ jobs:
1616 git config user.name github-actions[bot]
1717 git config user.email 41898282+github-actions[bot]@users.noreply.github.com
1818
19- - name : Set up Python 3.12
20- uses : actions /setup-python @v5
19+ - name : Install uv
20+ uses : astral-sh /setup-uv @v5
2121 with :
22- python-version : 3.12
22+ version : " 0.7.5"
23+ python-version : 3.10
2324
24- - name : Install poetry
25- shell : bash
26- run : |
27- python -m pip install poetry
28- echo "$HOME/.poetry/bin" >> $GITHUB_PATH
29-
30- - name : Configure poetry
31- shell : bash
32- run : poetry config virtualenvs.in-project true
33-
34- - name : Set up cache
35- uses : actions/cache@v3
36- id : cache
37- with :
38- path : .venv
39- key : venv-documentation-${{ hashFiles('**/poetry.lock') }}
40-
41- - name : Ensure cache is healthy
42- if : steps.cache.outputs.cache-hit == 'true'
43- shell : bash
44- run : poetry run pip --version >/dev/null 2>&1 || rm -rf .venv
45-
46- - name : Install dependencies
47- shell : bash
48- run : poetry install
25+ - name : Install betterproto2
26+ working-directory : ./betterproto2
27+ run : uv sync --locked --all-extras --all-groups
4928
50- - run : poetry run mkdocs gh-deploy --force
29+ - name : Build and deploy documentation
30+ working-directory : ./betterproto2
31+ run : uv run mkdocs gh-deploy --force
Original file line number Diff line number Diff line change @@ -22,8 +22,8 @@ dependencies = [
2222]
2323
2424[project .urls ]
25- Documentation = " https://betterproto.github.io/python-betterproto2-compiler /"
26- Repository = " https://github.com/betterproto/python-betterproto2-compiler "
25+ Documentation = " https://betterproto.github.io/python-betterproto2/"
26+ Repository = " https://github.com/betterproto/python-betterproto2"
2727
2828[project .scripts ]
2929protoc-gen-python_betterproto2 = " betterproto2_compiler.plugin:main"
@@ -32,8 +32,6 @@ protoc-gen-python_betterproto2 = "betterproto2_compiler.plugin:main"
3232dev = [
3333 " pre-commit>=2.17.0,<3" ,
3434 " grpcio-tools>=1.54.2,<2" ,
35- " mkdocs-material>=9.5.49,<10" ,
36- " mkdocstrings[python]>=0.27.0,<0.28" ,
3735 " poethepoet>=0.32.2,<0.33" ,
3836 " pyright>=1.1.391,<2" ,
3937 " ipykernel>=6.29.5,<7" ,
@@ -155,10 +153,6 @@ help = "Check that the source code is formatted"
155153cmd = " ruff check src tests"
156154help = " Check the code with the Ruff linter"
157155
158- [tool .poe .tasks .serve-docs ]
159- cmd = " mkdocs serve"
160- help = " Serve the documentation locally"
161-
162156# python -m grpc.tools.protoc \
163157# --python_betterproto2_out=src/lib2 \
164158# google/protobuf/any.proto \
You can’t perform that action at this time.
0 commit comments