Skip to content

Commit 20faf8a

Browse files
authored
For Python 3.9 use tests with PyMuPDF version 1.26.5. (#102)
* For Python > 3.9 use tests with PyMuPDF version 1.25.5, 1.26.7, 1.27.1.
1 parent b31c8d3 commit 20faf8a

2 files changed

Lines changed: 41 additions & 2 deletions

File tree

.github/workflows/py3.yml

Lines changed: 37 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ jobs:
1616
runs-on: ubuntu-latest
1717
strategy:
1818
matrix:
19-
python-version: ['3.9', '3.10', '3.11', '3.12', '3.13', '3.14']
20-
pymupdf-version: ['1.26.4', '1.26.3', '1.26.1', '1.26.0', '1.25.5', '1.25.4', '1.25.3']
19+
python-version: ['3.10', '3.11', '3.12', '3.13', '3.14']
20+
pymupdf-version: ['1.27.1', '1.26.7', '1.25.5']
2121

2222
steps:
2323
- uses: actions/checkout@v3
@@ -85,3 +85,38 @@ jobs:
8585
- name: pytest
8686
run: |
8787
pytest -m "not external" --cov=markdown_pdf --cov-report xml --cov-report term:skip-covered --durations=5 tests
88+
89+
py39:
90+
runs-on: ubuntu-24.04
91+
strategy:
92+
matrix:
93+
python-version: ['3.9']
94+
95+
steps:
96+
- uses: actions/checkout@v3
97+
98+
- name: Set up Python ${{ matrix.python-version }}
99+
uses: actions/setup-python@v3
100+
with:
101+
python-version: ${{ matrix.python-version }}
102+
103+
- name: Install dependencies
104+
run: |
105+
python -m pip install --upgrade pip
106+
pip install '.[dev]'
107+
# Override pymupdf
108+
pip install "PyMuPDF==1.26.5"
109+
110+
- name: flake8
111+
run: |
112+
flake8 --count --show-source --statistics --max-line-length=120 markdown_pdf
113+
flake8 --count --show-source --statistics --max-line-length=120 tests/test
114+
115+
- name: pylint
116+
run: |
117+
python -m pylint markdown_pdf
118+
python -m pylint tests/test
119+
120+
- name: pytest
121+
run: |
122+
pytest -m "not external" --cov=markdown_pdf --cov-report xml --cov-report term:skip-covered --durations=5 tests

history.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
* For Python 3.8 PyMuPDF version changed from 1.24.6 to 1.24.11.
22

3+
* For Python 3.9 use tests with PyMuPDF version 1.26.5.
4+
5+
* For Python > 3.9 use tests with PyMuPDF version 1.25.5, 1.26.7, 1.27.1.
6+
37
18.02.2026 ver.1.13.1
48
---------------------
59

0 commit comments

Comments
 (0)