Pillow/.github/workflows/test.yml

65 lines
1.4 KiB
YAML
Raw Normal View History

2019-09-22 17:09:27 +03:00
name: Test
on: [push, pull_request]
jobs:
build:
strategy:
matrix:
2019-09-22 23:09:59 +03:00
os: [
"ubuntu-18.04",
"macOS-10.14",
]
2019-09-22 17:09:27 +03:00
python-version: [
"pypy3",
"pypy2",
"3.7",
"2.7",
"3.5",
"3.6",
]
include:
- python-version: "3.5"
env: PYTHONOPTIMIZE=2
- python-version: "3.6"
env: PYTHONOPTIMIZE=1
2019-09-22 23:09:59 +03:00
runs-on: ${{ matrix.os }}
name: ${{ matrix.os }} Python ${{ matrix.python-version }}
2019-09-22 17:09:27 +03:00
steps:
- uses: actions/checkout@v1
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v1
with:
python-version: ${{ matrix.python-version }}
2019-09-22 23:09:59 +03:00
- name: Install Linux dependencies
if: matrix.os == 'ubuntu-18.04'
2019-09-22 17:09:27 +03:00
run: |
.travis/install.sh
2019-09-22 23:09:59 +03:00
- name: Install macOS dependencies
if: matrix.os == 'macOS-10.14'
run: |
.github/workflows/macos-install.sh
2019-09-22 17:09:27 +03:00
- name: Test
run: |
.travis/script.sh
- name: Docs
if: matrix.python-version == 2.7
run: |
pip install sphinx-rtd-theme
make doccheck
- name: After success
if: success()
run: |
.travis/after_success.sh
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}