File tree Expand file tree Collapse file tree 1 file changed +37
-0
lines changed
Expand file tree Collapse file tree 1 file changed +37
-0
lines changed Original file line number Diff line number Diff line change @@ -197,6 +197,43 @@ jobs:
197197 cd ../installation
198198 ./bin/python3 -m test -uall -j4
199199
200+ test-docs :
201+ runs-on : ubuntu-24.04
202+ timeout-minutes : 15
203+ needs :
204+ - build-docs
205+ steps :
206+ - name : " Download the docs artifacts"
207+ uses : actions/download-artifact@018cc2cf5baa6db3ef3c5f8a56943fffe632ef53 # v6.0.0
208+ with :
209+ name : docs
210+
211+ - name : " Set up Python"
212+ uses : actions/setup-python@83679a892e2d95755f2dac6acb0bfd1e9ac5d548 # v6.1.0
213+ with :
214+ python-version : " 3.x"
215+
216+ - name : " Install epubcheck"
217+ run : python -m pip install epubcheck
218+
219+ - name : " Run epubcheck"
220+ continue-on-error : true
221+ run : |
222+ ls -la
223+ epubcheck "python-$CPYTHON_RELEASE-docs.epub" &> epubcheck.txt
224+
225+ - name : " Show epubcheck output"
226+ run : cat epubcheck.txt
227+
228+ - name : " Check for fatal errors in EPUB"
229+ run : |
230+ if grep -q "^FATAL" epubcheck.txt; then
231+ echo "Fatal errors found in EPUB:"
232+ grep "^FATAL" epubcheck.txt
233+ exit 1
234+ fi
235+ echo "No fatal errors found in EPUB"
236+
200237 build-android :
201238 name : build-android (${{ matrix.arch }})
202239 needs :
You can’t perform that action at this time.
0 commit comments