2019-12-16 19:35:22 +01:00
|
|
|
name: Docs
|
|
|
|
|
|
|
|
on:
|
2021-10-21 22:34:18 +02:00
|
|
|
workflow_dispatch:
|
2019-12-16 19:35:22 +01:00
|
|
|
#push:
|
|
|
|
# branches:
|
2021-05-19 17:14:37 +02:00
|
|
|
# - 'main'
|
|
|
|
# - '3.10'
|
|
|
|
# - '3.9'
|
|
|
|
# - '3.8'
|
|
|
|
# - '3.7'
|
2019-12-16 19:35:22 +01:00
|
|
|
# paths:
|
|
|
|
# - 'Doc/**'
|
|
|
|
pull_request:
|
|
|
|
branches:
|
2021-05-19 17:14:37 +02:00
|
|
|
- 'main'
|
|
|
|
- '3.10'
|
|
|
|
- '3.9'
|
|
|
|
- '3.8'
|
|
|
|
- '3.7'
|
2019-12-16 19:35:22 +01:00
|
|
|
paths:
|
|
|
|
- 'Doc/**'
|
|
|
|
- 'Misc/**'
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build_doc:
|
|
|
|
name: 'Docs'
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2020-05-20 18:38:41 +02:00
|
|
|
- uses: actions/checkout@v2
|
2020-05-25 23:32:24 +02:00
|
|
|
- name: Register Sphinx problem matcher
|
|
|
|
run: echo "::add-matcher::.github/problem-matchers/sphinx.json"
|
2020-01-18 00:44:38 +01:00
|
|
|
- name: 'Install Dependencies'
|
|
|
|
run: sudo ./.github/workflows/posix-deps-apt.sh && sudo apt-get install wamerican
|
|
|
|
- name: 'Configure CPython'
|
|
|
|
run: ./configure --with-pydebug
|
|
|
|
- name: 'Build CPython'
|
2020-02-26 20:21:41 +01:00
|
|
|
run: make -j4
|
2019-12-16 19:35:22 +01:00
|
|
|
- name: 'Install build dependencies'
|
2020-01-18 00:44:38 +01:00
|
|
|
run: make -C Doc/ PYTHON=../python venv
|
2021-12-10 00:02:20 +01:00
|
|
|
# Run "check doctest html" as 3 steps to get a more readable output
|
|
|
|
# in the web UI
|
|
|
|
- name: 'Check documentation'
|
|
|
|
run: make -C Doc/ PYTHON=../python SPHINXOPTS="-q -W --keep-going -j4" check
|
|
|
|
# Use "xvfb-run" since some doctest tests open GUI windows
|
|
|
|
- name: 'Run documentation doctest'
|
|
|
|
run: xvfb-run make -C Doc/ PYTHON=../python SPHINXOPTS="-q -W --keep-going -j4" doctest
|
|
|
|
- name: 'Build HTML documentation'
|
|
|
|
run: make -C Doc/ PYTHON=../python SPHINXOPTS="-q -W --keep-going -j4" html
|
2020-01-18 00:44:38 +01:00
|
|
|
- name: 'Upload'
|
2022-02-23 22:16:47 +01:00
|
|
|
uses: actions/upload-artifact@v2.3.1
|
2019-12-16 19:35:22 +01:00
|
|
|
with:
|
|
|
|
name: doc-html
|
|
|
|
path: Doc/build/html
|