Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use GitHub Actions instead of Travis #1209

Merged
merged 62 commits into from
Sep 8, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
62 commits
Select commit Hold shift + click to select a range
6bb1d79
Try some github actions
grewn0uille Apr 4, 2020
87b0a4c
Remove shell
grewn0uille Apr 4, 2020
7011685
Move shell
grewn0uille Apr 4, 2020
ff25217
Fix if
grewn0uille Apr 4, 2020
a6a9622
Move shell again
grewn0uille Apr 4, 2020
39626ff
Try some if
grewn0uille Apr 4, 2020
403ef61
Invert run and ifs
grewn0uille Apr 4, 2020
f12c92c
run at the same level as if
grewn0uille Apr 4, 2020
ca15957
Use checkout and setup-python actions
grewn0uille Apr 5, 2020
67c21c8
Remove bracket
grewn0uille Apr 5, 2020
371b2b9
Fix python instruction
grewn0uille Apr 5, 2020
f336c7d
Use matrix instead of runner
grewn0uille Apr 5, 2020
9ed728e
sudo for linux and macos
grewn0uille Apr 5, 2020
642fb2e
Fix if ubuntu
grewn0uille Apr 5, 2020
c22848e
Remove sudo on macos
grewn0uille Apr 5, 2020
e067bed
More sudo
grewn0uille Apr 5, 2020
bf895ac
fail-fast
grewn0uille Apr 5, 2020
5ca87f3
Remove export PATH for windows
grewn0uille Apr 5, 2020
2a6dfc3
Revert "Remove export PATH for windows"
grewn0uille Apr 5, 2020
79b2c6c
Runs-on depends on matrix.os
grewn0uille Apr 5, 2020
bf4f846
Try to install msys2 with choco
grewn0uille Apr 5, 2020
a668364
Remove progress bar on choco installs
grewn0uille Apr 5, 2020
c235fae
Change msys path
grewn0uille Apr 5, 2020
8a25118
No more Ahem
grewn0uille Apr 5, 2020
4e70083
Fix path
grewn0uille Apr 5, 2020
dcbcaa5
Not sure installing python with choco is usefull as actions/setup-pyt…
grewn0uille Apr 5, 2020
ac3b234
export is back
grewn0uille Apr 5, 2020
ee54d48
add-path instead of export
grewn0uille Apr 5, 2020
70bf0da
fix path
grewn0uille Apr 5, 2020
ca48913
Force shell to be bash when exporting path
grewn0uille Apr 5, 2020
f341a8a
Revert "Force shell to be bash when exporting path"
grewn0uille Apr 5, 2020
037b5bd
Try to use set-env
liZe Apr 5, 2020
bea95d4
Try to use $env:PATH
liZe Apr 5, 2020
93b2a5d
Don’t use bash for Windows tests
liZe Apr 5, 2020
1a0a67a
Merge remote-tracking branch 'lize/master'
liZe Apr 5, 2020
95cea07
Install DejaVu fonts before msys for Windows tests
liZe Apr 5, 2020
58fc190
Install choco packages one by one
liZe Apr 5, 2020
e344ffb
Force DejaVu fonts to be scanned by FontConfig
liZe Apr 5, 2020
2c286a1
Fix FontConfig font scanning
liZe Apr 5, 2020
b63a3ac
Exclude some testing configurations
liZe Apr 5, 2020
85c6758
Drop manual fc-cache
liZe Apr 5, 2020
467cb48
Install DejaVu with pacman
liZe Apr 5, 2020
c6e9f4f
Fix DejaVu package name
liZe Apr 5, 2020
9463e3f
Display DejaVu matching fonts
liZe Apr 6, 2020
f327c8a
Copy DejaVu fonts into a fontconfig-friendly folder
liZe Apr 6, 2020
4d2ff1e
Fix font folder
liZe Apr 6, 2020
b7f2d72
Use explicit destination for fonts destination
liZe Apr 6, 2020
5a79ad7
Remove useless lines
liZe Apr 6, 2020
39a6929
Remove fc-cache
liZe Apr 6, 2020
e2ce90a
Merge
grewn0uille Apr 6, 2020
dc21f1c
Use verbose tests to find crash
liZe Apr 6, 2020
ada6967
Add names
grewn0uille Apr 6, 2020
169e0c1
Merge
grewn0uille Apr 6, 2020
98c4e4f
Specify os on names
grewn0uille Apr 6, 2020
6923e04
Remove Travis config as Actions is used
grewn0uille May 13, 2020
580af02
Rename DejaVu font for MacOS
grewn0uille May 13, 2020
b15d2eb
Don’t copy fonts for tests
liZe Aug 25, 2020
7a7b094
Merge branch 'master' into lucie
liZe Aug 25, 2020
acbeaf0
Fix imports
liZe Aug 25, 2020
64e1503
Drop Python 3.5 support
liZe Aug 25, 2020
6ed7be1
Revert "Don’t copy fonts for tests"
liZe Aug 25, 2020
8875bc6
Merge kozea/master
grewn0uille Sep 8, 2020
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.