linkcheck #2800
This file contains 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: linkcheck | |
on: | |
pull_request: | |
paths: | |
- docs/conf.py | |
- .github/workflows/linkcheck.yml | |
schedule: | |
# Run once a week on Fridays | |
- cron: "0 0 * * FRI" | |
permissions: | |
contents: read | |
env: | |
CARGO_INCREMENTAL: 0 | |
jobs: | |
docs-linkcheck: | |
runs-on: ubuntu-latest | |
name: "linkcheck" | |
timeout-minutes: 10 | |
steps: | |
- uses: actions/checkout@44c2b7a8a4ea60a981eaca3cf939b5f4305c123b # v4.1.5 | |
with: | |
persist-credentials: false | |
- name: Setup python | |
id: setup-python | |
uses: actions/setup-python@82c7e631bb3cdc910f68e0081d67478d79c6982d # v5.1.0 | |
with: | |
python-version: 3.11 | |
- name: Cache rust and pip | |
uses: ./.github/actions/cache | |
timeout-minutes: 2 | |
with: | |
# This creates the same key as the docs job (as long as they have the same | |
# python version) | |
key: 3.11-${{ steps.setup-python.outputs.python-version }} | |
- run: python -m pip install -c ci-constraints-requirements.txt nox | |
- name: Build nox environment | |
run: | | |
nox -v --install-only -s docs-linkcheck | |
env: | |
CARGO_TARGET_DIR: ${{ format('{0}/src/rust/target/', github.workspace) }} | |
- name: linkcheck | |
run: nox --no-install -s docs-linkcheck -- --color=yes |