Skip to content

Commit

Permalink
Merge pull request #1209 from grewn0uille/master
Browse files Browse the repository at this point in the history
Use GitHub Actions instead of Travis
  • Loading branch information
liZe authored Sep 8, 2020
2 parents 41f871f + 8875bc6 commit d935217
Show file tree
Hide file tree
Showing 2 changed files with 48 additions and 56 deletions.
48 changes: 48 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
name: WeasyPrint's tests
on: [push]

jobs:
tests:
name: ${{ matrix.os }} - ${{ matrix.python-version }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
python-version: [3.6, 3.7, 3.8, pypy3]
exclude:
# Pillow wheel missing for this configuration
- os: macos-latest
python-version: pypy3
# Cannot find installed libraries
- os: windows-latest
python-version: pypy3
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v1
with:
python-version: ${{ matrix.python-version }}
- name: Install DejaVu (Ubuntu)
if: matrix.os == 'ubuntu-latest'
run: sudo apt-get update -y && sudo apt-get install ttf-dejavu -y
- name: Install DejaVu, cairo, pango, gdk-pixbuf and libffi (MacOS)
if: matrix.os == 'macos-latest'
run: |
brew tap homebrew/cask-fonts
brew cask install font-dejavu
brew install cairo pango gdk-pixbuf libffi
- name: Install msys2 and DejaVu (Windows)
if: matrix.os == 'windows-latest'
run: |
choco install -y --no-progress msys2
powershell "C:\tools\msys64\usr\bin\bash -lc 'pacman -S mingw-w64-x86_64-ttf-dejavu mingw-w64-x86_64-gtk3 --noconfirm'"
xcopy "C:\tools\msys64\mingw64\share\fonts\TTF" "C:\Users\runneradmin\.fonts" /e /i
$env:PATH += ";C:\tools\msys64\mingw64\bin"
echo "::set-env name=PATH::$env:PATH"
- name: Upgrade pip and setuptools
run: python -m pip install --upgrade pip setuptools
- name: Upgrade cffi (Windows)
if: matrix.os == 'windows-latest'
run: python -m pip install --upgrade cffi
- name: Launch tests
run: python setup.py test --addopts="-v"
56 changes: 0 additions & 56 deletions .travis.yml

This file was deleted.

0 comments on commit d935217

Please sign in to comment.