-
Notifications
You must be signed in to change notification settings - Fork 67
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add GitHub Actions workflow to run tests
Restrict to Python 3.5 for now as tests fail on later Pythons.
- Loading branch information
1 parent
19f26b8
commit 5cdabb4
Showing
1 changed file
with
43 additions
and
0 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,43 @@ | ||
name: CI | ||
on: | ||
push: | ||
branches: | ||
- master | ||
pull_request: | ||
|
||
jobs: | ||
build: | ||
name: Build and Test | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
python: [3.5] | ||
# python: [3.5, 3.6, 3.7, 3.8] | ||
|
||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v2 | ||
|
||
- name: Setup Python | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: ${{ matrix.python }} | ||
|
||
- name: Install setuptools | ||
run: | | ||
pip install --upgrade setuptools | ||
- name: Install wheel | ||
run: | | ||
pip install wheel | ||
- name: Install nose | ||
run: | | ||
pip install nose | ||
- name: Install package | ||
run: | | ||
python setup.py install | ||
- name: Run tests | ||
run: nosetests --exe |