File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 88 runs-on : ubuntu-latest
99 steps :
1010 - uses : actions/checkout@v5
11- - uses : actions/setup-python@v5
12- with :
13- python-version : 3.x
11+ - uses : astral-sh/setup-uv@v6
1412 - name : Install dependencies
15- run : pip install -r docs/requirements.txt
16- - name : check mkdocs build
13+ run : uv sync --group docs
14+ - name : Check mkdocs build
1715 if : github.ref != 'refs/heads/main'
18- run : mkdocs build
16+ run : uv run mkdocs build
1917 - name : Upload docs build as artifact
2018 if : github.ref != 'refs/heads/main'
2119 uses : actions/upload-artifact@v4
2725 run : |
2826 git config user.name 'github-actions'
2927 git config user.email '41898282+github-actions[bot]@users.noreply.github.com'
30- mkdocs gh-deploy --force
28+ uv run mkdocs gh-deploy --force
Original file line number Diff line number Diff line change @@ -14,15 +14,13 @@ jobs:
1414 runs-on : ubuntu-latest
1515 steps :
1616 - uses : actions/checkout@v5
17- - uses : actions/setup-python@v5
18- with :
19- python-version : 3.x
17+ - uses : astral-sh/setup-uv@v6
2018
2119 - name : Install dependencies
22- run : pip install -r docs/requirements.txt -e .
20+ run : uv sync --group docs
2321
2422 - name : Build docs
25- run : sphinx-build docs ${{ inputs.path-to-doc }}
23+ run : uv run sphinx-build docs ${{ inputs.path-to-doc }}
2624
2725 - name : Upload docs build as artifact
2826 uses : actions/upload-artifact@v4
Original file line number Diff line number Diff line change 11repos :
22 - repo : https://github.com/pre-commit/pre-commit-hooks
3- rev : v4.5 .0
3+ rev : v6.0 .0
44 hooks :
55 - id : trailing-whitespace
66 - id : end-of-file-fixer
You can’t perform that action at this time.
0 commit comments