-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4081 from hugovk/test-with-github-actions
Test Linux and macOS with GitHub Actions
- Loading branch information
Showing
7 changed files
with
101 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
name: Test | ||
|
||
on: [push, pull_request] | ||
|
||
jobs: | ||
build: | ||
|
||
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: [ | ||
"ubuntu-18.04", | ||
"macOS-10.14", | ||
] | ||
python-version: [ | ||
"pypy3", | ||
"3.7", | ||
"3.5", | ||
"3.6", | ||
] | ||
include: | ||
- python-version: "3.5" | ||
env: PYTHONOPTIMIZE=2 | ||
- python-version: "3.6" | ||
env: PYTHONOPTIMIZE=1 | ||
runs-on: ${{ matrix.os }} | ||
name: ${{ matrix.os }} Python ${{ matrix.python-version }} | ||
|
||
steps: | ||
- uses: actions/checkout@v1 | ||
|
||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v1 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
|
||
- name: Install Linux dependencies | ||
if: startsWith(matrix.os, 'ubuntu') | ||
run: | | ||
.travis/install.sh | ||
- name: Install macOS dependencies | ||
if: startsWith(matrix.os, 'macOS') | ||
run: | | ||
.github/workflows/macos-install.sh | ||
- name: Build | ||
run: | | ||
.travis/build.sh | ||
- name: Test | ||
run: | | ||
.travis/test.sh | ||
- name: Docs | ||
if: matrix.python-version == 3.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 }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
#!/bin/bash | ||
|
||
set -e | ||
|
||
coverage erase | ||
make clean | ||
make install-coverage |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters