Skip to content

Commit 8552064

Browse files
authored
Merge pull request #107 from hugovk/rm-travis
Move CI to GitHub Actions
2 parents c5369a9 + 88ccfe1 commit 8552064

File tree

3 files changed

+53
-28
lines changed

3 files changed

+53
-28
lines changed

.github/workflows/test.yml

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
name: Test
2+
3+
on: [push, pull_request]
4+
5+
env:
6+
FORCE_COLOR: 1
7+
8+
jobs:
9+
build:
10+
runs-on: ${{ matrix.os }}
11+
strategy:
12+
fail-fast: false
13+
matrix:
14+
python-version: [
15+
"pypy3",
16+
"3.9",
17+
# Dependencies aren't installing on Python 3.10
18+
# because Wheel doesn't yet support it
19+
# and GitHub Actions doesn't have allow_failures
20+
# https://github.com/pypa/wheel/issues/354
21+
# "3.10-dev",
22+
]
23+
os: [ubuntu-16.04]
24+
25+
steps:
26+
- uses: actions/checkout@v2
27+
28+
- name: Set up Python ${{ matrix.python-version }}
29+
uses: actions/setup-python@v2
30+
with:
31+
python-version: ${{ matrix.python-version }}
32+
33+
- name: Install dependencies
34+
run: |
35+
pip install wheel
36+
pip install pillow
37+
pip install -r testsuite/requirements.txt
38+
39+
- name: Test
40+
shell: bash
41+
run: |
42+
cd testsuite
43+
./run.py --help
44+
./run.py -s 512x512 -n 1 --json load convert composition rotate_right scale blur filter allocate crop full_cycle
45+
./run.py -s 512x512 -n 1 --json wand_load wand_convert wand_scale wand_blur wand_composition wand_rotate_right wand_full_cycle
46+
47+
- name: Lint
48+
shell: bash
49+
run: |
50+
pip install pycodestyle pyflakes
51+
pycodestyle --statistics --count . || true
52+
pyflakes . | tee >(wc -l) || true

.travis.yml

Lines changed: 0 additions & 27 deletions
This file was deleted.

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Test Suites
22

3-
[![Build Status](https://travis-ci.com/python-pillow/pillow-perf.svg?branch=master)](https://travis-ci.com/github/python-pillow/pillow-perf)
3+
[![Test](https://github.com/python-pillow/pillow-perf/workflows/Test/badge.svg)](https://github.com/python-pillow/pillow-perf/actions)
44

55
Performance tests divided into suites.
66

0 commit comments

Comments
 (0)