mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-12-24 17:06:16 +03:00
Test macOS with GitHub Actions
This commit is contained in:
parent
e595ddbaa1
commit
7c7c53fbb6
19
.github/workflows/macos-install.sh
vendored
Executable file
19
.github/workflows/macos-install.sh
vendored
Executable file
|
@ -0,0 +1,19 @@
|
|||
#!/bin/bash
|
||||
|
||||
set -e
|
||||
|
||||
sudo installer -pkg /Library/Developer/CommandLineTools/Packages/macOS_SDK_headers_for_macOS_10.14.pkg -target /
|
||||
|
||||
brew install libtiff libjpeg webp little-cms2
|
||||
|
||||
PYTHONOPTIMIZE=0 pip install cffi
|
||||
pip install coverage
|
||||
pip install olefile
|
||||
pip install -U pytest
|
||||
pip install -U pytest-cov
|
||||
pip install pyroma
|
||||
pip install test-image-results
|
||||
pip install numpy
|
||||
|
||||
# extra test images
|
||||
pushd depends && ./install_extra_test_images.sh && popd
|
16
.github/workflows/test.yml
vendored
16
.github/workflows/test.yml
vendored
|
@ -5,9 +5,12 @@ on: [push, pull_request]
|
|||
jobs:
|
||||
build:
|
||||
|
||||
runs-on: ubuntu-latest
|
||||
strategy:
|
||||
matrix:
|
||||
os: [
|
||||
"ubuntu-18.04",
|
||||
"macOS-10.14",
|
||||
]
|
||||
python-version: [
|
||||
"pypy3",
|
||||
"pypy2",
|
||||
|
@ -21,7 +24,8 @@ jobs:
|
|||
env: PYTHONOPTIMIZE=2
|
||||
- python-version: "3.6"
|
||||
env: PYTHONOPTIMIZE=1
|
||||
name: Python ${{ matrix.python-version }}
|
||||
runs-on: ${{ matrix.os }}
|
||||
name: ${{ matrix.os }} Python ${{ matrix.python-version }}
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v1
|
||||
|
@ -31,10 +35,16 @@ jobs:
|
|||
with:
|
||||
python-version: ${{ matrix.python-version }}
|
||||
|
||||
- name: Install dependencies
|
||||
- name: Install Linux dependencies
|
||||
if: matrix.os == 'ubuntu-18.04'
|
||||
run: |
|
||||
.travis/install.sh
|
||||
|
||||
- name: Install macOS dependencies
|
||||
if: matrix.os == 'macOS-10.14'
|
||||
run: |
|
||||
.github/workflows/macos-install.sh
|
||||
|
||||
- name: Test
|
||||
run: |
|
||||
.travis/script.sh
|
||||
|
|
Loading…
Reference in New Issue
Block a user