Skip to content

Commit

Permalink
DX: run linkcheck on GitHub Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
redeboer committed Jan 19, 2023
1 parent dee5b5d commit 5664d34
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
1 change: 1 addition & 0 deletions .cspell/this-project.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ latexmk
LATEXMKOPTS
LATEXOPTS
latexpdf
linkcheck
lualatex
MAINT
Mikhasenko
Expand Down
21 changes: 21 additions & 0 deletions .github/workflows/ci-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,11 +68,32 @@ jobs:
name: latex
path: docs/_build/latex

linkcheck:
name: Check external links
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- uses: actions/cache@v3
with:
key: |
${{ github.workflow }}-${{ github.job }}-${{ runner.os }}-${{ hashFiles('.constraints/py3.*.txt', 'setup.cfg') }}
path: |
~/.cache/pip/
- uses: actions/setup-python@v4
with:
python-version: "3.8"
- name: Install Python dependencies
run: |
python -m pip install --upgrade pip
pip install -c .constraints/py3.8.txt -e .[doc] tox
- run: tox -e linkcheck

documentation:
name: Run notebooks and build documentation
needs:
- html-fast
- pdf-fast
- linkcheck
if: github.event_name != 'pull_request'
runs-on: ubuntu-22.04
steps:
Expand Down

0 comments on commit 5664d34

Please sign in to comment.