From a25eda5ef8c83e7674de56cbb04a7ac1da0b298f Mon Sep 17 00:00:00 2001 From: Artur Shiriev Date: Sun, 6 Sep 2026 22:29:20 +0300 Subject: [PATCH] chore(ci): adopt the blocking offline link check MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Adds the `links` job to `_checks.yml`, matching what every other repo in the org now runs (modern-python/.github#66). `--offline` blocks network requests and excludes external URLs rather than erroring on them, so the gate is deterministic: it fails only on a relative link or file path a diff broke. Nothing else validates these. This repo builds its docs site from `docs/`, so `mkdocs --strict` covers links inside that tree only — root Markdown, `.github/` and `docs/agents/` were unchecked. Lands green: lychee reports 0 errors over 74 unique links (36 OK, 77 external excluded) at this commit. --- .github/workflows/_checks.yml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/.github/workflows/_checks.yml b/.github/workflows/_checks.yml index 22c5ca05..04a0404c 100644 --- a/.github/workflows/_checks.yml +++ b/.github/workflows/_checks.yml @@ -46,3 +46,17 @@ jobs: files: ./coverage.xml flags: unittests name: codecov-${{ matrix.python-version }} + + links: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v6 + # --offline blocks network requests and excludes every external URL, so this gate + # is deterministic: it fails only on a relative link or file path a diff broke. + - name: Check local links + uses: lycheeverse/lychee-action@v2 + with: + args: >- + --offline + --no-progress + '**/*.md'