-
Notifications
You must be signed in to change notification settings - Fork 26
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 #232 from e-koch/use_gh_actions
Change to using github actions for CI
- Loading branch information
Showing
4 changed files
with
69 additions
and
142 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,61 @@ | ||
name: Run tests | ||
|
||
on: [push, pull_request] | ||
|
||
jobs: | ||
tests: | ||
name: ${{ matrix.name}} | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
include: | ||
- os: ubuntu-latest | ||
python-version: 3.7 | ||
name: Python 3.7 with minimal dependencies | ||
toxenv: py37-test | ||
|
||
- os: ubuntu-18.04 | ||
python-version: 3.6 | ||
name: Python 3.6 with minimal dependencies | ||
toxenv: py36-test | ||
|
||
- os: ubuntu-latest | ||
python-version: 3.7 | ||
name: Python 3.7 with all dependencies | ||
toxenv: py37-test-all | ||
|
||
- os: ubuntu-latest | ||
python-version: 3.8 | ||
name: Python 3.8, all dependencies, and dev versions of key dependencies | ||
toxenv: py38-test-dev | ||
|
||
- os: macos-latest | ||
python-version: 3.7 | ||
name: Python 3.7 with all dependencies, and dev versions of key dependencies on MacOS X | ||
toxenv: py37-test-all-dev | ||
|
||
# - os: windows-latest | ||
# python-version: 3.7 | ||
# name: Python 3.7, all dependencies, and dev versions of key dependencies on Windows | ||
# toxenv: py37-test-all-dev | ||
|
||
- os: ubuntu-latest | ||
python-version: 3.8 | ||
name: Documentation | ||
toxenv: build_docs | ||
|
||
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 testing dependencies | ||
run: python -m pip install tox codecov | ||
- name: Run tests with ${{ matrix.name }} | ||
run: tox -v -e ${{ matrix.toxenv }} | ||
- name: Upload coverage to codecov | ||
uses: codecov/[email protected] | ||
with: | ||
file: ./coverage.xml |
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
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