Skip to content

Commit

Permalink
use uv for docs building in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
luizirber committed Oct 17, 2024
1 parent 285edd7 commit 724f288
Show file tree
Hide file tree
Showing 3 changed files with 331 additions and 8 deletions.
13 changes: 7 additions & 6 deletions .github/workflows/gh-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,16 +30,17 @@ jobs:
- name: Show action trigger
run: echo "= The job was automatically triggered by a ${{github.event_name}} event."

- name: Setting up Python 3.12
uses: actions/setup-python@v5
- name: Install a specific version of uv
uses: astral-sh/setup-uv@v3
with:
python-version: "3.12"
version: "0.4.x"
enable-cache: true

- name: Installing dtspy dependencies (${{ matrix.os }})
run: python3 -m pip install -r requirements.txt
- name: Install Python 3.12
run: uv python install 3.12

- name: Build
run: mkdocs build --verbose
run: uv run --dev mkdocs build --verbose

- if: ${{ github.event_name == 'push' }}
name: GitHub Pages action
Expand Down
6 changes: 5 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,9 @@ dependencies = [

[tool.uv]
dev-dependencies = [
"coverage >=7.6.3,<8"
"coverage >=7.6.3,<8",
"mkdocs-material>=9.5.41",
"mkdocs>=1.6.1",
"mkdocstrings-python>=1.12.1",
"mkdocstrings>=0.26.2",
]
Loading

0 comments on commit 724f288

Please sign in to comment.