Skip to content

Commit

Permalink
Fix img2pdf and python version
Browse files Browse the repository at this point in the history
  • Loading branch information
jbarlow83 committed Oct 27, 2024
1 parent f50620c commit e44bf46
Showing 1 changed file with 15 additions and 20 deletions.
35 changes: 15 additions & 20 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ jobs:
- name: "Set up Python"
uses: actions/setup-python@v5
with:
python-version-file: ".python-version"
python-version: ${{ matrix.python }}

- name: Install Tesseract 5
if: matrix.tesseract5
Expand Down Expand Up @@ -91,17 +91,17 @@ jobs:
libxslt1-dev \
pypy3-dev
- name: Install Python packages
run: |
uv sync --extra test
- name: Report versions
run: |
tesseract --version
gs --version
pngquant --version
unpaper --version
img2pdf --version
- name: Install Python packages
run: |
uv sync --extra test
uv run img2pdf --version
- name: Test
run: |
Expand Down Expand Up @@ -145,13 +145,6 @@ jobs:
pngquant \
tesseract
- name: Report versions
run: |
tesseract --version
gs --version
pngquant --version
img2pdf --version
- name: Install uv
uses: astral-sh/setup-uv@v3
with:
Expand All @@ -160,12 +153,19 @@ jobs:
- name: "Set up Python"
uses: actions/setup-python@v5
with:
python-version-file: ".python-version"
python-version: ${{ matrix.python }}

- name: Install Python packages
run: |
uv sync --extra test
- name: Report versions
run: |
tesseract --version
gs --version
pngquant --version
uv run img2pdf --version
- name: Test
run: |
uv run pytest --cov-report xml --cov=ocrmypdf --cov=tests/ -n0 tests/
Expand Down Expand Up @@ -203,7 +203,7 @@ jobs:
- name: "Set up Python"
uses: actions/setup-python@v5
with:
python-version-file: ".python-version"
python-version: ${{ matrix.python }}

- name: Install system packages
run: |
Expand Down Expand Up @@ -239,11 +239,6 @@ jobs:
with:
version: "0.4.27"

- name: "Set up Python"
uses: actions/setup-python@v5
with:
python-version-file: ".python-version"

- name: Make wheels and sdist
run: |
uv build --sdist --wheel
Expand Down

0 comments on commit e44bf46

Please sign in to comment.