-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Resolves #180 **Why this change was necessary** Travis doesn't offer great support for macOS and is also beginning to charge for macOS build minutes. **What this change does** - Factors the Travis CI build config into a shell script - Calls that shell script in a GitHub Actions Workflow - Adds a matrix build in the GH Actions Workflow for macOS 10.15 Catalina and 11.0 Big Sur (on Apple Silicon), and Ubuntu 18, 20, and 16 - Adds a matrix build in the GH Actions Workflow for Python 3.7 and 3.8 - Adds a build status badge to the README - Adds Coveralls coverage metrics for the Ubuntu 18.04 build only. **Additional context/notes/links** https://blog.travis-ci.com/2020-11-02-travis-ci-new-billing
- Loading branch information
Showing
4 changed files
with
50 additions
and
44 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
name: CI-Tests | ||
|
||
on: | ||
# Triggers the workflow on push or pull request events but only for the master branch | ||
push: | ||
branches: | ||
- master | ||
pull_request: | ||
branches: | ||
- master | ||
# Allows you to run this workflow manually from the Actions tab | ||
workflow_dispatch: | ||
|
||
jobs: | ||
test: | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
matrix: | ||
os: | ||
- 'macos-10.15' | ||
- 'macos-11.0' | ||
- 'ubuntu-18.04' | ||
- 'ubuntu-20.04' | ||
- 'ubuntu-16.04' | ||
python-version: | ||
- '3.7' | ||
- '3.8' | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Set XCode version | ||
if: contains(matrix.os, 'macos-11.0') | ||
run: sudo xcode-select -s "/Applications/Xcode_12.2.app" | ||
|
||
- name: Set up Python | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
|
||
- name: Run CI script | ||
run: ./ci.sh | ||
|
||
- name: Coveralls | ||
if: contains(matrix.os, 'ubuntu-18.04') | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.github_token }} | ||
run: | | ||
coveralls |
This file was deleted.
Oops, something went wrong.
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