Skip to content

Commit

Permalink
ci: Install weasyprint with homebrew
Browse files Browse the repository at this point in the history
  • Loading branch information
kesara committed Oct 24, 2024
1 parent dcffebe commit 219b931
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/workflows/checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -131,14 +131,19 @@ jobs:
- name: Install dependencies
run: |
brew install pango pillow libffi groff make diffutils
brew install make diffutils
# Install WeasyPrint 61.2
brew tap-new --no-git custom/weasyprint
brew extract --git-revision edb83fc7c8bb9987bdecb810e61281c5adc47c73 weasyprint custom/weasyprint
brew install [email protected]
echo "Installing pip + wheel..."
python -m pip install --upgrade pip wheel
echo "Installing requirements.txt + test dependencies..."
python -m pip install -r requirements.txt tox tox-gh-actions certifi decorator dict2xml pyflakes "pypdf>=4.1.0" "weasyprint==61.2" "pydyf<0.10.0"
- name: Generate Valid Tests
run: |
export DYLD_FALLBACK_LIBRARY_PATH=/opt/homebrew/lib:$DYLD_FALLBACK_LIBRARY_PATH
echo "/usr/local/opt/make/libexec/gnubin" >> $GITHUB_PATH
make yestests || true
cp -af tests/out/. tests/valid
Expand All @@ -148,6 +153,7 @@ jobs:
PLATFORM: macos-latest
run: |
echo "/usr/local/opt/make/libexec/gnubin" >> $GITHUB_PATH
export DYLD_FALLBACK_LIBRARY_PATH=/opt/homebrew/lib:$DYLD_FALLBACK_LIBRARY_PATH
tox
# tests-windows:
Expand Down
3 changes: 3 additions & 0 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@ commands =
allowlist_externals =
make

pass_env =
DYLD_FALLBACK_LIBRARY_PATH

deps =
pyflakes
decorator
Expand Down

0 comments on commit 219b931

Please sign in to comment.