diff --git a/.github/workflows/test_pip.yml b/.github/workflows/test_pip.yml index 1eabc30..565f273 100644 --- a/.github/workflows/test_pip.yml +++ b/.github/workflows/test_pip.yml @@ -30,6 +30,10 @@ jobs: uses: actions/setup-python@v6 with: python-version: ${{ matrix.python-version }} + - name: Install system dependencies (Ubuntu) + if: runner.os == 'Linux' + run: sudo apt-get update && sudo apt-get install -y libegl1 + - name: Cache pip uses: actions/cache@v6 diff --git a/tests/test_epub_exporter.py b/tests/test_epub_exporter.py index 0bdef3a..9718bae 100644 --- a/tests/test_epub_exporter.py +++ b/tests/test_epub_exporter.py @@ -197,7 +197,7 @@ def test_epub3_preserves_original_whitespace(tmp_path) -> None: ) assert match is not None original_text = html.unescape(match.group(1)) - assert "Second line\n\nThird paragraph." in original_text + assert "Second line\n\nThird paragraph." in original_text.replace("\r\n", "\n") def test_epub3_sentence_chunks_render_as_paragraphs(tmp_path) -> None: