Sandbox: Optionally use uv
package manager to save cycles
#2021
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: docs | |
on: | |
workflow_dispatch: | |
pull_request: ~ | |
push: | |
branches: | |
- master | |
schedule: | |
- cron: '0 7 * * *' | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
documentation: | |
name: Run link checker | |
runs-on: ubuntu-latest | |
steps: | |
- name: Acquire sources | |
uses: actions/checkout@v4 | |
- name: Set up Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: '3.12' | |
cache: 'pip' | |
cache-dependency-path: 'setup.py' | |
- name: Install uv | |
uses: yezz123/setup-uv@v4 | |
- name: Build docs | |
run: | | |
# Activate `uv`. | |
if command -v uv; then | |
function pip() { | |
uv pip "$@" | |
} | |
fi | |
# Build docs. | |
cd docs && make check |