Skip to content

Commit db123d5

Browse files
committed
improve github actions
1 parent 00931c0 commit db123d5

File tree

3 files changed

+45
-5
lines changed

3 files changed

+45
-5
lines changed

.github/workflows/deploy-docs.yml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,22 +28,24 @@ jobs:
2828
- name: Checkout
2929
uses: actions/checkout@v4
3030

31+
- name: Install uv
32+
uses: astral-sh/setup-uv@v5
33+
with:
34+
version: "latest"
35+
3136
- name: Setup Python
3237
uses: actions/setup-python@v5
3338
with:
3439
python-version: '3.12'
3540

3641
- name: Install dependencies
37-
run: |
38-
python -m pip install --upgrade pip
39-
pip install -e .
40-
pip install mkdocs-material>=9.6.21 mkdocstrings[python]>=0.30.1 pymdown-extensions>=10.0
42+
run: uv sync --dev
4143

4244
- name: Setup Pages
4345
uses: actions/configure-pages@v4
4446

4547
- name: Build with MkDocs
46-
run: mkdocs build --clean --strict
48+
run: uv run mkdocs build --clean --strict
4749

4850
- name: Upload artifact
4951
uses: actions/upload-pages-artifact@v3

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,4 +55,5 @@ dev = [
5555
"mkdocs-material>=9.6.21",
5656
"mkdocstrings[python]>=0.30.1",
5757
"pymdown-extensions>=10.0",
58+
"mkdocs-minify-plugin>=0.8.0",
5859
]

uv.lock

Lines changed: 37 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)