Skip to content

Fix compatibility with pyPDF 4.3.x #435

Fix compatibility with pyPDF 4.3.x

Fix compatibility with pyPDF 4.3.x #435

Workflow file for this run

name: CI
on: [ push, pull_request ]
jobs:
build:
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- name: Install dependencies (Ubuntu)
if: ${{ matrix.os == 'ubuntu-latest' }}
run: sudo apt-get -y install python3 help2man imagemagick
- name: Install dependencies (macOS)
if: ${{ matrix.os == 'macos-latest' }}
run: |
brew install libpaper tox imagemagick
# Prepend optional brew binary directories to PATH
echo "$(brew --prefix)/opt/imagemagick/bin:$(brew --prefix)/opt/python/libexec/bin" >> $GITHUB_PATH
- name: Install libpaper from source
if: ${{ matrix.os == 'ubuntu-latest' }}
run: |
git clone https://github.com/rrthomas/libpaper.git ~/libpaper
cd ~/libpaper && ./bootstrap && ./configure --quiet --enable-silent-rules && sudo make install
if test ${{ matrix.os }} = ubuntu-latest; then sudo ldconfig; fi
paper --version
- name: Build
run: |
if [ "$RUNNER_OS" = "macOS" ]; then
export MAGICK_HOME="$(brew --prefix)/opt/imagemagick/"
tox --skip-missing-interpreters -e py311,py312
else
pip install tox
tox --skip-missing-interpreters
fi