2019-12-16 14:35:22 -04:00
|
|
|
name: Docs
|
|
|
|
|
|
|
|
on:
|
|
|
|
#push:
|
|
|
|
# branches:
|
|
|
|
# - master
|
2020-05-19 14:01:32 -03:00
|
|
|
# - 3.9
|
2019-12-16 14:35:22 -04:00
|
|
|
# - 3.8
|
|
|
|
# - 3.7
|
|
|
|
# paths:
|
|
|
|
# - 'Doc/**'
|
|
|
|
pull_request:
|
|
|
|
branches:
|
|
|
|
- master
|
2020-05-19 14:01:32 -03:00
|
|
|
- 3.9
|
2019-12-16 14:35:22 -04:00
|
|
|
- 3.8
|
|
|
|
- 3.7
|
|
|
|
paths:
|
|
|
|
- 'Doc/**'
|
|
|
|
- 'Misc/**'
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build_doc:
|
|
|
|
name: 'Docs'
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2020-05-20 13:38:41 -03:00
|
|
|
- uses: actions/checkout@v2
|
2020-05-25 18:32:24 -03:00
|
|
|
- name: Register Sphinx problem matcher
|
|
|
|
run: echo "::add-matcher::.github/problem-matchers/sphinx.json"
|
2020-01-17 19:44:38 -04: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 15:21:41 -04:00
|
|
|
run: make -j4
|
2019-12-16 14:35:22 -04:00
|
|
|
- name: 'Install build dependencies'
|
2020-01-17 19:44:38 -04:00
|
|
|
run: make -C Doc/ PYTHON=../python venv
|
2019-12-16 14:35:22 -04:00
|
|
|
- name: 'Build documentation'
|
2020-11-25 05:18:00 -04:00
|
|
|
run: xvfb-run make -C Doc/ PYTHON=../python SPHINXOPTS="-q -W --keep-going -j4" doctest html
|
2020-01-17 19:44:38 -04:00
|
|
|
- name: 'Upload'
|
2020-10-23 18:32:12 -03:00
|
|
|
uses: actions/upload-artifact@v2.2.0
|
2019-12-16 14:35:22 -04:00
|
|
|
with:
|
|
|
|
name: doc-html
|
|
|
|
path: Doc/build/html
|