Check hyperlinks #10
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: Check hyperlinks | |
on: | |
schedule: | |
- cron: 37 7 * * 2 | |
workflow_dispatch: | |
pull_request: | |
types: [labeled, opened, synchronize, reopened] | |
branches: | |
- main | |
jobs: | |
linkcheck: | |
name: Documentation linkcheck | |
runs-on: ubuntu-latest | |
if: github.event_name != 'pull_request' || contains(github.event.pull_request.labels.*.name, 'perform linkcheck in CI') | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Set up Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: 3.12 | |
- name: Install Python dependencies | |
run: python -m pip install --upgrade tox | |
- name: Install graphviz & pandoc | |
run: sudo apt-get install graphviz pandoc | |
- name: Check hyperlinks | |
run: tox -e linkcheck |