diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index a413e5f6e..f18ab77e8 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -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 @@ -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: | @@ -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: @@ -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/ @@ -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: | @@ -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