Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
37 changes: 37 additions & 0 deletions .github/workflows/build-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
Loading