34
34
scripts/pdfchecker.py --process-all-test-pdf-files
35
35
scripts/pdfchecker.py --print-aggregated-report
36
36
lint :
37
- runs-on : ubuntu-latest
37
+ # Note: there is currently an issue with ubuntu-latest==ubuntu-24.04 / OpenSSL 3.0.13 / oscrypto:
38
+ # https://github.com/py-pdf/fpdf2/issues/1333
39
+ runs-on : ubuntu-22.04
38
40
steps :
39
41
- name : Checkout 🛎️
40
42
uses : actions/checkout@v4
73
75
strategy :
74
76
matrix :
75
77
python-version : ['3.8', '3.9', '3.10', '3.11', '3.12', '3.13']
76
- platform : [ubuntu-latest , windows-latest]
78
+ platform : [ubuntu-22.04 , windows-latest]
77
79
runs-on : ${{ matrix.platform }}
78
80
steps :
79
81
- name : Checkout 🛎️
@@ -83,12 +85,12 @@ jobs:
83
85
with :
84
86
python-version : ${{ matrix.python-version }}
85
87
- name : Install system dependencies ⚙️
86
- if : matrix.platform == 'ubuntu-latest'
88
+ if : ${{ startsWith( matrix.platform, 'ubuntu') }}
87
89
# Ghostscript is needed for test/table/test_table_extraction.py
88
90
run : sudo apt-get update --allow-releaseinfo-change && sudo apt-get install ghostscript
89
91
- name : Install qpdf ⚙️
90
92
# We run the unit tests WITHOUT qpdf for a single parallel execution / Python version:
91
- if : matrix.platform == 'ubuntu-latest' && matrix.python-version != '3.13'
93
+ if : ${{ startsWith( matrix.platform, 'ubuntu') && matrix.python-version != '3.13' }}
92
94
run : sudo apt-get update --allow-releaseinfo-change && sudo apt-get install qpdf
93
95
- name : Install Python dependencies ⚙️
94
96
run : |
@@ -105,10 +107,10 @@ jobs:
105
107
pytest -vv --trace-memory-usage
106
108
- name : Upload coverage report to codecov.io ☑
107
109
# We only upload coverage ONCE, for a single parallel execution / Python version:
108
- if : matrix.platform == 'ubuntu-latest' && matrix.python-version == '3.13'
110
+ if : ${{ startsWith( matrix.platform, 'ubuntu') && matrix.python-version == '3.13' }}
109
111
run : bash <(curl -s https://codecov.io/bash)
110
112
- name : Run tests with the minimal versions of fpdf2 direct dependencies ☑
111
- if : matrix.platform == 'ubuntu-latest' && matrix.python-version == '3.8'
113
+ if : ${{ startsWith( matrix.platform, 'ubuntu') && matrix.python-version == '3.8' }}
112
114
run : |
113
115
# Ensuring that those minimal versions remain compatible:
114
116
sed -i '/install_requires/,/\n/s/>=/==/' setup.cfg
0 commit comments