mirror of
https://github.com/python-telegram-bot/python-telegram-bot.git
synced 2024-11-26 09:07:43 +01:00
30 lines
960 B
YAML
30 lines
960 B
YAML
|
name: Check Links in Documentation
|
||
|
on:
|
||
|
schedule:
|
||
|
# First day of month at 05:46 in every 2nd month
|
||
|
- cron: '46 5 1 */2 *'
|
||
|
|
||
|
jobs:
|
||
|
test-sphinx-build:
|
||
|
name: test-sphinx-linkcheck
|
||
|
runs-on: ${{matrix.os}}
|
||
|
strategy:
|
||
|
matrix:
|
||
|
python-version: [3.7]
|
||
|
os: [ubuntu-latest]
|
||
|
fail-fast: False
|
||
|
steps:
|
||
|
- uses: actions/checkout@v3
|
||
|
- name: Set up Python ${{ matrix.python-version }}
|
||
|
uses: actions/setup-python@v3
|
||
|
with:
|
||
|
python-version: ${{ matrix.python-version }}
|
||
|
- name: Install dependencies
|
||
|
run: |
|
||
|
python -W ignore -m pip install --upgrade pip
|
||
|
python -W ignore -m pip install -r requirements.txt
|
||
|
python -W ignore -m pip install -r requirements-dev.txt
|
||
|
python -W ignore -m pip install -r docs/requirements-docs.txt
|
||
|
- name: Check Links
|
||
|
run: sphinx-build docs/source docs/build/html -W --keep-going -j auto -b linkcheck
|