diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..62f740d --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,52 @@ +name: Test + +on: [push, pull_request] + +env: + FORCE_COLOR: 1 + +jobs: + build: + runs-on: ${{ matrix.os }} + strategy: + fail-fast: false + matrix: + python-version: [ + "pypy3", + "3.9", + # Dependencies aren't installing on Python 3.10 + # because Wheel doesn't yet support it + # and GitHub Actions doesn't have allow_failures + # https://github.com/pypa/wheel/issues/354 + # "3.10-dev", + ] + os: [ubuntu-16.04] + + steps: + - uses: actions/checkout@v2 + + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@v2 + with: + python-version: ${{ matrix.python-version }} + + - name: Install dependencies + run: | + pip install wheel + pip install pillow + pip install -r testsuite/requirements.txt + + - name: Test + shell: bash + run: | + cd testsuite + ./run.py --help + ./run.py -s 512x512 -n 1 --json load convert composition rotate_right scale blur filter allocate crop full_cycle + ./run.py -s 512x512 -n 1 --json wand_load wand_convert wand_scale wand_blur wand_composition wand_rotate_right wand_full_cycle + + - name: Lint + shell: bash + run: | + pip install pycodestyle pyflakes + pycodestyle --statistics --count . || true + pyflakes . | tee >(wc -l) || true diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index c9462f0..0000000 --- a/.travis.yml +++ /dev/null @@ -1,27 +0,0 @@ -dist: xenial -language: python - -install: - - travis_retry pip install pillow - - travis_retry pip install -r testsuite/requirements.txt - -script: - - cd testsuite - - ./run.py --help - - ./run.py -s 512x512 -n 1 --json load convert composition rotate_right scale blur filter allocate crop full_cycle - - ./run.py -s 512x512 -n 1 --json wand_load wand_convert wand_scale wand_blur wand_composition wand_rotate_right wand_full_cycle - -after_success: - - pwd - - travis_retry pip install pycodestyle pyflakes - - pycodestyle --statistics --count . - - pyflakes . | tee >(wc -l) - -matrix: - fast_finish: true - include: - - python: pypy3 - - python: 3.9 - - python: nightly - allow_failures: - - python: nightly diff --git a/README.md b/README.md index 3034645..4c71098 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # Test Suites -[![Build Status](https://travis-ci.com/python-pillow/pillow-perf.svg?branch=master)](https://travis-ci.com/github/python-pillow/pillow-perf) +[![Test](https://github.com/python-pillow/pillow-perf/workflows/Test/badge.svg)](https://github.com/python-pillow/pillow-perf/actions) Performance tests divided into suites.