Use a specific exception for worker start-up #323
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
| name: Docs | |
| env: | |
| # Current supported uv version. The uv documentation recommends pinning | |
| # this. The version should match the version used in .pre-commit-config.yaml | |
| # and frozen in uv.lock. | |
| UV_VERSION: "0.7.2" | |
| "on": | |
| push: | |
| branches: | |
| - main | |
| - master | |
| - "tickets/**" | |
| paths: | |
| - "docs/**" | |
| - "src/**.py" | |
| - "CHANGELOG.md" | |
| tags: | |
| - "*" | |
| jobs: | |
| docs: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Install uv | |
| uses: astral-sh/setup-uv@v5 | |
| with: | |
| version: ${{ env.UV_VERSION }} | |
| - name: Set up Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version-file: ".python-version" | |
| - name: Install graphviz | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install graphviz | |
| - name: Run tox | |
| run: uv run --only-group=tox tox run -e docs | |
| - name: Upload documentation | |
| uses: lsst-sqre/ltd-upload@v1 | |
| with: | |
| project: "noteburst" | |
| dir: "docs/_build/html" | |
| username: ${{ secrets.LTD_USERNAME }} | |
| password: ${{ secrets.LTD_PASSWORD }} |