[Python-checkins] Run doctests in GitHub actions Docs targer (GH-18041)

Pablo Galindo webhook-mailer at python.org
Fri Jan 17 18:45:00 EST 2020


https://github.com/python/cpython/commit/6aabb63d96845b3cb207d28d40bf0b78e171be75
commit: 6aabb63d96845b3cb207d28d40bf0b78e171be75
branch: master
author: Pablo Galindo <Pablogsal at gmail.com>
committer: GitHub <noreply at github.com>
date: 2020-01-17T23:44:38Z
summary:

Run doctests in GitHub actions Docs targer (GH-18041)

files:
M .github/workflows/doc.yml

diff --git a/.github/workflows/doc.yml b/.github/workflows/doc.yml
index 405b12e3d29c9..5bba8e690655f 100644
--- a/.github/workflows/doc.yml
+++ b/.github/workflows/doc.yml
@@ -23,17 +23,17 @@ jobs:
     runs-on: ubuntu-latest
     steps:
     - uses: actions/checkout at v1
-    - uses: actions/setup-python at v1
-      with:
-        python-version: '3.7'
-        architecture: 'x64'
+    - 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 -s -j4
     - name: 'Install build dependencies'
-      run: python -m pip install sphinx==2.2.0 blurb python-docs-theme
+      run: make -C Doc/ PYTHON=../python venv
     - name: 'Build documentation'
-      run: |
-        cd Doc
-        make check suspicious html PYTHON=python
-    - name: Upload
+      run: xvfb-run make -C Doc/ PYTHON=../python SPHINXOPTS="-q -W -j4" doctest suspicious html
+    - name: 'Upload'
       uses: actions/upload-artifact at v1
       with:
         name: doc-html



More information about the Python-checkins mailing list