KEP 10 dataset validation Prototype #1945
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: Check links in MkDocs | |
| on: | |
| push: | |
| branches: | |
| - main | |
| - develop | |
| pull_request: | |
| branches: | |
| - main | |
| - develop | |
| jobs: | |
| linkcheck: | |
| permissions: | |
| contents: read | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| python-version: [ "3.11" ] | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v7 | |
| - name: Set up Python ${{ matrix.python-version }} | |
| uses: actions/setup-python@v6 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| - name: Install the latest version of uv with Python ${{inputs.python-version}} | |
| uses: astral-sh/setup-uv@v7 | |
| with: | |
| version: "latest" | |
| python-version: ${{ inputs.python-version }} | |
| activate-environment: true | |
| - name: Install docs requirements | |
| run: | | |
| make install-docs-requirements | |
| - name: Run MkDocs on strict mode. | |
| run: | | |
| mkdocs build --strict | |
| - name: Serve docs locally in background | |
| run: | | |
| cd site | |
| python -m http.server 8000 & | |
| echo $! > ../docs_server.pid | |
| sleep 5 # Give server time to start | |
| - name: Check docs.kedro.org links in Python files against local build | |
| uses: lycheeverse/lychee-action@v2 | |
| with: | |
| args: > | |
| --extensions py,yml | |
| --verbose | |
| --no-progress | |
| --remap "https://docs.kedro.org/en/stable/ http://localhost:8000/" | |
| . | |
| - name: Stop docs server | |
| if: always() | |
| run: | | |
| if [ -f docs_server.pid ]; then | |
| kill $(cat docs_server.pid) || true | |
| rm docs_server.pid | |
| fi |