Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added a link checker step in the doctests jobs using both Lychee and … #4686

Open
wants to merge 15 commits into
base: develop
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Check URLs with Lychee
name: Check URLs with Lychee and Sphinx

on:
push:
Expand All @@ -11,7 +11,7 @@ on:
- cron: "0 3 * * *"

jobs:
linkChecker:
linkCheckerLychee:
runs-on: ubuntu-latest
steps:

Expand Down Expand Up @@ -61,3 +61,17 @@ jobs:
env:
# to be used in case rate limits are surpassed
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
linkcheckerSphinx:
runs-on: ubuntu-latest
needs: linkCheckerLychee

steps:
# Checkout repository code
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2

# Run Sphinx's linkcheck builder
- name: Run Sphinx linkcheck
run: |
sphinx-build -b linkcheck . _build/linkcheck || exit 1 #Fail the job if the link is broken
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Loading