-
-
Notifications
You must be signed in to change notification settings - Fork 696
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1209 from grewn0uille/master
Use GitHub Actions instead of Travis
- Loading branch information
Showing
2 changed files
with
48 additions
and
56 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" |
This file was deleted.
Oops, something went wrong.