-
Notifications
You must be signed in to change notification settings - Fork 58
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Upgrade version requirements and add github actions
- Loading branch information
1 parent
9a93e47
commit d5e5756
Showing
5 changed files
with
171 additions
and
40 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,70 @@ | ||
name: Build/test on Linux | ||
# This workflow is triggered on pushes to the repository. | ||
on: [push, pull_request] | ||
|
||
jobs: | ||
test: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
py: [ | ||
'2.7', | ||
'3.5', | ||
'3.6', | ||
'3.7', | ||
'3.8', | ||
'pypy2', | ||
'pypy3' | ||
] | ||
name: "Python: ${{ matrix.py }}" | ||
steps: | ||
- uses: actions/checkout@master | ||
- name: Setup python | ||
uses: actions/setup-python@v1 | ||
with: | ||
python-version: ${{ matrix.py }} | ||
architecture: x64 | ||
- run: pip install tox | ||
- name: Running tox | ||
run: tox -e py | ||
coverage: | ||
runs-on: ubuntu-latest | ||
name: Validate coverage for Python 2/3 | ||
steps: | ||
- uses: actions/checkout@master | ||
- name: Setup python | ||
uses: actions/setup-python@v1 | ||
with: | ||
python-version: 2.7 | ||
architecture: x64 | ||
- name: Setup python | ||
uses: actions/setup-python@v1 | ||
with: | ||
python-version: 3.8 | ||
architecture: x64 | ||
- run: pip install tox | ||
- run: tox -e py2-cover,py3-cover,coverage | ||
docs: | ||
runs-on: ubuntu-latest | ||
name: Build the documentation | ||
steps: | ||
- uses: actions/checkout@master | ||
- name: Setup python | ||
uses: actions/setup-python@v1 | ||
with: | ||
python-version: 3.5 | ||
architecture: x64 | ||
- run: pip install tox | ||
- run: tox -e docs | ||
# lint: | ||
# runs-on: ubuntu-latest | ||
# name: Lint the package | ||
# steps: | ||
# - uses: actions/checkout@master | ||
# - name: Setup python | ||
# uses: actions/setup-python@v1 | ||
# with: | ||
# python-version: 3.8 | ||
# architecture: x64 | ||
# - run: pip install tox | ||
# - run: tox -e lint |
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,32 @@ | ||
name: Build/test on MacOS | ||
# This workflow is triggered on pushes to the repository. | ||
on: [push, pull_request] | ||
|
||
jobs: | ||
test: | ||
runs-on: macOS-latest | ||
strategy: | ||
matrix: | ||
py: [ | ||
'2.7', | ||
'3.5', | ||
'3.6', | ||
'3.7', | ||
'3.8', | ||
'pypy2', | ||
'pypy3' | ||
] | ||
architecture: ['x64'] | ||
name: "Python: ${{ matrix.py }}" | ||
steps: | ||
- uses: actions/checkout@master | ||
- name: Setup python | ||
uses: actions/setup-python@v1 | ||
with: | ||
python-version: ${{ matrix.py }} | ||
architecture: ${{ matrix.architecture }} | ||
- run: pip install tox | ||
- name: Running tox | ||
run: | | ||
ulimit -n 4096 | ||
tox -e py |
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,28 @@ | ||
name: Build/test on Windows | ||
# This workflow is triggered on pushes to the repository. | ||
on: [push, pull_request] | ||
|
||
jobs: | ||
test: | ||
runs-on: windows-2019 | ||
strategy: | ||
matrix: | ||
py: [ | ||
'2.7', | ||
'3.5', | ||
'3.6', | ||
'3.7', | ||
'3.8' | ||
] | ||
architecture: ['x86', 'x64'] | ||
name: "Python: ${{ matrix.py }} (${{ matrix.architecture }})" | ||
steps: | ||
- uses: actions/checkout@master | ||
- name: Setup python | ||
uses: actions/setup-python@v1 | ||
with: | ||
python-version: ${{ matrix.py }} | ||
architecture: ${{ matrix.architecture }} | ||
- run: pip install tox | ||
- name: Running tox | ||
run: tox -e py |
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