submit: update remobing from a community section #58
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: Run tests | |
| on: | |
| push: | |
| branches: | |
| - main | |
| pull_request: | |
| branches: | |
| - main | |
| workflow_dispatch: | |
| inputs: | |
| reason: | |
| description: "Reason" | |
| required: false | |
| default: "Manual trigger" | |
| jobs: | |
| Tests: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v5 | |
| - name: Set up Python 3.12 | |
| uses: actions/setup-python@v6 | |
| with: | |
| python-version: 3.12 | |
| - name: Install uv | |
| uses: astral-sh/setup-uv@v7 | |
| - name: Install the project | |
| run: uv sync | |
| - name: Build | |
| run: uv run mkdocs build --clean --strict -v | |
| # Mkdocs generates a 404 file with absolute links to /docs/..., which is of course | |
| # needed as it doesn't know which path the 404 page will be rendered for. | |
| # However, `hyperlink` doesn't understand this absolute path so will always fail | |
| # the link check for it. | |
| # `hyperlink` doesn't yet have an option to ignore files, so we will remove it | |
| # manually here. | |
| - name: Remove 404 file | |
| run: rm site/404.html | |
| - name: Check links | |
| uses: untitaker/hyperlink@0.2.0 | |
| with: | |
| args: site/ --sources docs/ |