File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -38,17 +38,21 @@ jobs:
3838 steps :
3939 - name : Checkout khisto-python
4040 uses : actions/checkout@v4
41- - name : Add pip scripts directory to path
42- run : echo PATH="$PATH:/github/home/.local/bin" >> "$GITHUB_ENV"
41+ - name : Set up Python
42+ uses : actions/setup-python@v5
43+ - name : Set up UV
44+ uses : astral-sh/setup-uv@v6
45+ with :
46+ enable-cache : true
4347 - name : Install doc build requirements
4448 run : |
45- python -m pip install --upgrade pip
46- cd docs
47- python -m pip install -U -r requirements.txt
49+ uv venv .build-env
50+ uv pip install --python .build-env -r docs/requirements.txt
4851 - name : Build Sphinx Documentation
4952 run : |
50- cd docs
51- make html
53+ . .build-env/bin/activate
54+ uv run --active --directory docs make html
55+ deactivate
5256 - name : Upload the docs as an artifact
5357 uses : actions/upload-artifact@v4
5458 with :
6973 path : ./docs/_build/html
7074 - name : Deploy web site
7175 run : |
76+ uv venv .publish-env
77+
7278 # Install tool for pushing to GH pages
73- pip install ghp-import
79+ uv pip install --python .publish-env ghp-import
7480
7581 # Push built site directory contents to GH pages
76- ghp-import -m "Deployed ${GITHUB_SHA:0:7}" --push --force --no-jekyll ./docs/_build/html/
82+ . .publish-env/bin/activate
83+ uv run ghp-import -m "Deployed ${GITHUB_SHA:0:7}" --push --force --no-jekyll ./docs/_build/html/
84+ deactivate
You can’t perform that action at this time.
0 commit comments