2020-01-06 12:46:55 -04:00
|
|
|
name: Docs
|
|
|
|
|
|
|
|
on:
|
|
|
|
#push:
|
|
|
|
# branches:
|
|
|
|
# - master
|
|
|
|
# - 3.8
|
|
|
|
# - 3.7
|
|
|
|
# paths:
|
|
|
|
# - 'Doc/**'
|
|
|
|
pull_request:
|
|
|
|
branches:
|
|
|
|
- master
|
|
|
|
- 3.8
|
|
|
|
- 3.7
|
|
|
|
paths:
|
|
|
|
- 'Doc/**'
|
|
|
|
- 'Misc/**'
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build_doc:
|
|
|
|
name: 'Docs'
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v1
|
2020-02-26 15:57:14 -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'
|
|
|
|
run: make -j4
|
2020-01-06 12:46:55 -04:00
|
|
|
- name: 'Install build dependencies'
|
2020-02-26 15:57:14 -04:00
|
|
|
run: make -C Doc/ PYTHON=../python venv
|
2020-01-06 12:46:55 -04:00
|
|
|
- name: 'Build documentation'
|
2020-02-26 15:57:14 -04:00
|
|
|
run: xvfb-run make -C Doc/ PYTHON=../python SPHINXOPTS="-q -W -j4" doctest suspicious html
|
|
|
|
- name: 'Upload'
|
2020-01-06 12:46:55 -04:00
|
|
|
uses: actions/upload-artifact@v1
|
|
|
|
with:
|
|
|
|
name: doc-html
|
|
|
|
path: Doc/build/html
|