diff --git a/.github/workflows/deploy_docs.yml b/.github/workflows/deploy_docs.yml index a33967b..f2962fd 100644 --- a/.github/workflows/deploy_docs.yml +++ b/.github/workflows/deploy_docs.yml @@ -13,27 +13,19 @@ jobs: docs: runs-on: ubuntu-latest steps: - - name: Checkout repository - uses: actions/checkout@v4 + - uses: actions/checkout@v4 with: fetch-depth: 0 - - - name: Setup python - uses: actions/setup-python@v5 + - uses: astral-sh/setup-uv@v6 with: - python-version: "3.12" - - - name: Install dependencies - run: | - python -m pip install --upgrade pip setuptools wheel - python -m pip install -e .[docs] + enable-cache: true - name: Test that docs build without error if: github.event_name == 'pull_request' - run: mkdocs build --strict + run: uv run mkdocs build --strict - name: Deploy docs to GitHub Pages if: github.event_name == 'push' - run: mkdocs gh-deploy --strict --force + run: uv run mkdocs gh-deploy --strict --force