|
75 | 75 | --fail-if-regression \ |
76 | 76 | --fail-if-improved \ |
77 | 77 | --fail-if-new-news-nit |
78 | | - - name: 'Build EPUB documentation' |
79 | | - continue-on-error: true |
80 | | - run: | |
81 | | - set -Eeuo pipefail |
82 | | - make -C Doc/ PYTHON=../python SPHINXOPTS="--quiet" epub |
83 | | - pip install epubcheck |
84 | | - epubcheck Doc/build/epub/Python.epub &> Doc/epubcheck.txt |
85 | | - - name: 'Check for fatal errors in EPUB' |
86 | | - if: github.event_name == 'pull_request' |
87 | | - continue-on-error: true # until gh-136155 is fixed |
88 | | - run: | |
89 | | - python Doc/tools/check-epub.py |
90 | 78 |
|
91 | 79 | # Run "doctest" on HEAD as new syntax doesn't exist in the latest stable release |
92 | 80 | doctest: |
@@ -114,3 +102,30 @@ jobs: |
114 | 102 | # Use "xvfb-run" since some doctest tests open GUI windows |
115 | 103 | - name: 'Run documentation doctest' |
116 | 104 | run: xvfb-run make -C Doc/ PYTHON=../python SPHINXERRORHANDLING="--fail-on-warning" doctest |
| 105 | + |
| 106 | + check-epub: |
| 107 | + name: 'Check EPUB' |
| 108 | + runs-on: ubuntu-latest |
| 109 | + timeout-minutes: 30 |
| 110 | + steps: |
| 111 | + - uses: actions/checkout@v4 |
| 112 | + with: |
| 113 | + persist-credentials: false |
| 114 | + - name: 'Set up Python' |
| 115 | + uses: actions/setup-python@v5 |
| 116 | + with: |
| 117 | + python-version: '3' |
| 118 | + cache: 'pip' |
| 119 | + cache-dependency-path: 'Doc/requirements.txt' |
| 120 | + - name: 'Install build dependencies' |
| 121 | + run: | |
| 122 | + make -C Doc/ venv |
| 123 | + python -m pip install epubcheck |
| 124 | + - name: 'Build EPUB documentation' |
| 125 | + run: make -C Doc/ PYTHON=../python epub |
| 126 | + - name: 'Run epubcheck' |
| 127 | + continue-on-error: true |
| 128 | + run: epubcheck Doc/build/epub/Python.epub &> Doc/epubcheck.txt |
| 129 | + - run: cat Doc/epubcheck.txt |
| 130 | + - name: 'Check for fatal errors in EPUB' |
| 131 | + run: python Doc/tools/check-epub.py |
0 commit comments