mirror of
https://github.com/python-telegram-bot/python-telegram-bot.git
synced 2024-11-25 08:37:07 +01:00
335772568f
Co-authored-by: Hinrich Mahler <22366557+Bibo-Joshi@users.noreply.github.com>
39 lines
1.1 KiB
YAML
39 lines
1.1 KiB
YAML
name: Test Documentation Build
|
|
on:
|
|
pull_request:
|
|
branches:
|
|
- master
|
|
- v14
|
|
- doc-fixes
|
|
push:
|
|
branches:
|
|
- master
|
|
- v14
|
|
- doc-fixes
|
|
|
|
jobs:
|
|
test-sphinx-build:
|
|
name: test-sphinx-build
|
|
runs-on: ${{matrix.os}}
|
|
strategy:
|
|
matrix:
|
|
python-version: [3.7]
|
|
os: [ubuntu-latest]
|
|
fail-fast: False
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
- name: Initialize vendored libs
|
|
run:
|
|
git submodule update --init --recursive
|
|
- 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: Build docs
|
|
run: sphinx-build docs/source docs/build/html -W --keep-going -j auto
|