Skip to content

add requirements.txt trigger to linkchecker.yml #17

add requirements.txt trigger to linkchecker.yml

add requirements.txt trigger to linkchecker.yml #17

Workflow file for this run

name: Link Checker
on:
pull_request:
paths:
- '**/*.md'
- .github/workflows/linkchecker.yml
- requirements.txt
workflow_dispatch:
jobs:
linkcheck:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.10'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install -r requirements.txt
python -m pip install linkchecker
# python -m pip install -e .
- name: Build Site
run: |
mkdocs build --verbose --clean --config-file mkdocs.yml
- name: Check links
run: |
linkchecker site/index.html