1name: Docs
2
3on:
4  #push:
5  #  branches:
6  #  - master
7  #  - 3.9
8  #  - 3.8
9  #  - 3.7
10  #  paths:
11  #  - 'Doc/**'
12  pull_request:
13    branches:
14    - master
15    - 3.9
16    - 3.8
17    - 3.7
18    paths:
19    - 'Doc/**'
20    - 'Misc/**'
21
22jobs:
23  build_doc:
24    name: 'Docs'
25    runs-on: ubuntu-latest
26    steps:
27    - uses: actions/checkout@v2
28    - name: 'Install Dependencies'
29      run: sudo ./.github/workflows/posix-deps-apt.sh && sudo apt-get install wamerican
30    - name: 'Configure CPython'
31      run: ./configure --with-pydebug
32    - name: 'Build CPython'
33      run: make -j4
34    - name: 'Install build dependencies'
35      run: make -C Doc/ PYTHON=../python venv
36    - name: 'Build documentation'
37      run: xvfb-run make -C Doc/ PYTHON=../python SPHINXOPTS="-q -W -j4" doctest suspicious html
38    - name: 'Upload'
39      uses: actions/upload-artifact@v2.2.1
40      with:
41        name: doc-html
42        path: Doc/build/html
43