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.10 16 - 3.9 17 - 3.8 18 - 3.7 19 paths: 20 - 'Doc/**' 21 - 'Misc/**' 22 23jobs: 24 build_doc: 25 name: 'Docs' 26 runs-on: ubuntu-latest 27 steps: 28 - uses: actions/checkout@v2 29 - name: Register Sphinx problem matcher 30 run: echo "::add-matcher::.github/problem-matchers/sphinx.json" 31 - name: 'Install Dependencies' 32 run: sudo ./.github/workflows/posix-deps-apt.sh && sudo apt-get install wamerican 33 - name: 'Configure CPython' 34 run: ./configure --with-pydebug 35 - name: 'Build CPython' 36 run: make -j4 37 - name: 'Install build dependencies' 38 run: make -C Doc/ PYTHON=../python venv 39 - name: 'Build documentation' 40 run: xvfb-run make -C Doc/ PYTHON=../python SPHINXOPTS="-q -W --keep-going -j4" doctest html suspicious 41 - name: 'Upload' 42 uses: actions/upload-artifact@v2.2.2 43 with: 44 name: doc-html 45 path: Doc/build/html 46