From c6f8e23656ad0917880836dfec80540883a7e09e Mon Sep 17 00:00:00 2001 From: Stefan <96178532+stefan6419846@users.noreply.github.com> Date: Mon, 28 Jul 2025 17:43:07 +0200 Subject: [PATCH 1/2] DEV: Test with macOS as well Closes #3399. --- .github/workflows/github-ci.yaml | 33 +++++++++++++++++++++++++++++++- 1 file changed, 32 insertions(+), 1 deletion(-) diff --git a/.github/workflows/github-ci.yaml b/.github/workflows/github-ci.yaml index 9bf0ecd6d..b4c9f1487 100644 --- a/.github/workflows/github-ci.yaml +++ b/.github/workflows/github-ci.yaml @@ -1,5 +1,5 @@ # This workflow will install Python dependencies, run tests and lint with a variety of Python versions -# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions +# For more information see: https://docs.github.com/en/actions/tutorials/build-and-test-code/python name: CI @@ -51,6 +51,37 @@ jobs: run: | python -m pytest tests --cov=pypdf --cov-append -n auto -vv -p no:benchmark + test_macos: + name: pytest on macOS + runs-on: macos-latest + steps: + - name: Checkout Code + uses: actions/checkout@v4 + with: + submodules: 'recursive' + - name: Setup Python (3.11+) + uses: actions/setup-python@v5 + with: + python-version: 3.13 # latest stable python + allow-prereleases: true + - name: Upgrade pip + run: | + python -m pip install --upgrade pip + - name: Install requirements (Python 3.11+) + run: | + pip install -r requirements/ci-3.11.txt + - name: Install cryptography + run: | + pip install cryptography + - name: Install pypdf + run: | + pip install . + - name: Prepare + run: | + python -c "from tests import download_test_pdfs; download_test_pdfs()" + - name: Test with pytest + run: | + python -m pytest tests --cov=pypdf --cov-append -n auto -vv -p no:benchmark tests: name: "pytest on ${{ matrix.python-version }} (crypto-lib: ${{ matrix.use-crypto-lib }})" From 40577cf321dd1bb091868c8e21badd4e90bc554e Mon Sep 17 00:00:00 2001 From: Stefan <96178532+stefan6419846@users.noreply.github.com> Date: Mon, 28 Jul 2025 17:49:31 +0200 Subject: [PATCH 2/2] install OS dependencies as well --- .github/workflows/github-ci.yaml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/github-ci.yaml b/.github/workflows/github-ci.yaml index b4c9f1487..b6e1b4504 100644 --- a/.github/workflows/github-ci.yaml +++ b/.github/workflows/github-ci.yaml @@ -73,6 +73,9 @@ jobs: - name: Install cryptography run: | pip install cryptography + - name: Install OS dependencies + run: + brew install ghostscript jbig2dec poppler - name: Install pypdf run: | pip install .