Skip to content

Commit

Permalink
Test on Python 3.12, and fix CI for macOS
Browse files Browse the repository at this point in the history
Add Python 3.12 to tox config.

Depend on setuptools >= 60 for Python 3.12.

Only test on Python 3.11 and 3.12 on macOS, as it can’t load Wand on lower
versions.
  • Loading branch information
rrthomas committed May 17, 2024
1 parent 64a684d commit a44a5a1
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@ jobs:
- name: Install dependencies (macOS)
if: ${{ matrix.os == 'macos-latest' }}
run: |
brew install libpaper imagemagick
brew install libpaper tox imagemagick
# Prepend optional brew binary directories to PATH
echo "/usr/local/opt/imagemagick/bin:/usr/local/opt/python/libexec/bin" >> $GITHUB_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: |
Expand All @@ -28,5 +28,10 @@ jobs:
paper --version
- name: Build
run: |
pip install tox
tox --skip-missing-interpreters
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

0 comments on commit a44a5a1

Please sign in to comment.