mirror of
https://github.com/python-telegram-bot/python-telegram-bot.git
synced 2026-06-19 07:35:19 +00:00
80d515de39
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
42 lines
1.3 KiB
YAML
42 lines
1.3 KiB
YAML
name: Check Links in Documentation
|
|
on:
|
|
schedule:
|
|
# First day of month at 05:46 in every 2nd month
|
|
- cron: '46 5 1 */2 *'
|
|
pull_request:
|
|
paths:
|
|
- .github/workflows/docs-linkcheck.yml
|
|
|
|
permissions: {}
|
|
|
|
jobs:
|
|
test-sphinx-build:
|
|
name: test-sphinx-linkcheck
|
|
runs-on: ${{matrix.os}}
|
|
strategy:
|
|
matrix:
|
|
python-version: ['3.12']
|
|
os: [ubuntu-latest]
|
|
fail-fast: False
|
|
steps:
|
|
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
|
|
with:
|
|
persist-credentials: false
|
|
- name: Set up Python ${{ matrix.python-version }}
|
|
uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
|
|
with:
|
|
python-version: ${{ matrix.python-version }}
|
|
- name: Install dependencies
|
|
run: |
|
|
python -W ignore -m pip install --upgrade pip
|
|
python -W ignore -m pip install .[all] --group all
|
|
- name: Check Links
|
|
run: sphinx-build docs/source docs/build/html --keep-going -j auto -b linkcheck
|
|
- name: Upload linkcheck output
|
|
# Run also if the previous steps failed
|
|
if: always()
|
|
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
|
|
with:
|
|
name: linkcheck-output
|
|
path: docs/build/html/output.*
|