Add dependabot #53
Workflow file for this run
This file contains hidden or 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
| # Simple workflow for deploying static content to GitHub Pages | |
| name: Build docs | |
| on: | |
| workflow_dispatch: | |
| workflow_call: | |
| pull_request: | |
| branches: | |
| - main | |
| jobs: | |
| build_docs: | |
| runs-on: ubuntu-24.04 | |
| env: | |
| PYTHON_VERSION: "3.12" | |
| PUBLISH_DIR: ./_build/html | |
| steps: | |
| # checkout the repository | |
| - uses: actions/checkout@v5 | |
| # setup Python | |
| - name: Install Python ${{ env.PYTHON_VERSION }} | |
| uses: actions/setup-python@v6 | |
| with: | |
| python-version: ${{ env.PYTHON_VERSION }} | |
| # preserve pip cache to speed up installation | |
| - name: Cache pip | |
| uses: actions/cache@v5 | |
| with: | |
| path: ~/.cache/pip | |
| # Look to see if there is a cache hit for the corresponding requirements file | |
| key: ${{ runner.os }}-pip-${{ hashFiles('*requirements-docs.txt') }} | |
| restore-keys: | | |
| ${{ runner.os }}-pip-${{ hashFiles('requirements-docs.txt') }} | |
| - name: Install Python dependencies | |
| run: | | |
| python3 -m pip install --upgrade pip | |
| python3 -m pip install -r requirements-docs.txt | |
| - name: Build docs | |
| run: python3 -m jupyter book build . | |
| - name: Upload artifact | |
| uses: actions/upload-artifact@v5 | |
| with: | |
| name: documentation | |
| path: ${{ env.PUBLISH_DIR }} |