From 9f0912beddebcf2f21d341f33950e781e199e87b Mon Sep 17 00:00:00 2001 From: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com> Date: Thu, 11 Dec 2025 18:56:24 +0200 Subject: [PATCH] Test EPUB --- .github/workflows/build-release.yml | 37 +++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) diff --git a/.github/workflows/build-release.yml b/.github/workflows/build-release.yml index 7a8409fb..6cad8308 100644 --- a/.github/workflows/build-release.yml +++ b/.github/workflows/build-release.yml @@ -197,6 +197,43 @@ jobs: cd ../installation ./bin/python3 -m test -uall -j4 + test-docs: + runs-on: ubuntu-24.04 + timeout-minutes: 15 + needs: + - build-docs + steps: + - name: "Download the docs artifacts" + uses: actions/download-artifact@018cc2cf5baa6db3ef3c5f8a56943fffe632ef53 # v6.0.0 + with: + name: docs + + - name: "Set up Python" + uses: actions/setup-python@83679a892e2d95755f2dac6acb0bfd1e9ac5d548 # v6.1.0 + with: + python-version: "3.x" + + - name: "Install epubcheck" + run: python -m pip install epubcheck + + - name: "Run epubcheck" + continue-on-error: true + run: | + ls -la + epubcheck "python-$CPYTHON_RELEASE-docs.epub" &> epubcheck.txt + + - name: "Show epubcheck output" + run: cat epubcheck.txt + + - name: "Check for fatal errors in EPUB" + run: | + if grep -q "^FATAL" epubcheck.txt; then + echo "Fatal errors found in EPUB:" + grep "^FATAL" epubcheck.txt + exit 1 + fi + echo "No fatal errors found in EPUB" + build-android: name: build-android (${{ matrix.arch }}) needs: