Skip to content

Commit 6aabb63

Browse files
authored
Run doctests in GitHub actions Docs targer (pythonGH-18041)
1 parent ef8844f commit 6aabb63

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

.github/workflows/doc.yml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -23,17 +23,17 @@ jobs:
2323
runs-on: ubuntu-latest
2424
steps:
2525
- uses: actions/checkout@v1
26-
- uses: actions/setup-python@v1
27-
with:
28-
python-version: '3.7'
29-
architecture: 'x64'
26+
- name: 'Install Dependencies'
27+
run: sudo ./.github/workflows/posix-deps-apt.sh && sudo apt-get install wamerican
28+
- name: 'Configure CPython'
29+
run: ./configure --with-pydebug
30+
- name: 'Build CPython'
31+
run: make -s -j4
3032
- name: 'Install build dependencies'
31-
run: python -m pip install sphinx==2.2.0 blurb python-docs-theme
33+
run: make -C Doc/ PYTHON=../python venv
3234
- name: 'Build documentation'
33-
run: |
34-
cd Doc
35-
make check suspicious html PYTHON=python
36-
- name: Upload
35+
run: xvfb-run make -C Doc/ PYTHON=../python SPHINXOPTS="-q -W -j4" doctest suspicious html
36+
- name: 'Upload'
3737
uses: actions/upload-artifact@v1
3838
with:
3939
name: doc-html

0 commit comments

Comments
 (0)