-
Notifications
You must be signed in to change notification settings - Fork 2
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 #14 from Becksteinlab/gh-ci
switch from Travis CI to GitHub actions
- Loading branch information
Showing
4 changed files
with
76 additions
and
58 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,69 @@ | ||
name: CI | ||
|
||
on: | ||
# run once a day at 3:33 UTC | ||
schedule: | ||
- cron: "33 3 * * *" | ||
push: | ||
branches: | ||
- "master" | ||
pull_request: | ||
branches: | ||
- "master" | ||
|
||
jobs: | ||
test: | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: | ||
- ubuntu-latest | ||
python-version: | ||
- 2.7 | ||
- 3.6 | ||
- 3.7 | ||
- 3.8 | ||
- 3.9 | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Setup python | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
architecture: x64 | ||
|
||
- name: Environment Information | ||
shell: bash -l {0} | ||
run: | | ||
python --version | ||
- name: Install pytest, pytest plugins | ||
shell: bash -l {0} | ||
run: | | ||
python -m pip install pytest pytest-cov pytest-pep8 | ||
- name: Install numkit | ||
shell: bash -l {0} | ||
run: | | ||
python -m pip install six | ||
python -m pip install --only-binary=numpy numpy | ||
python -m pip install --only-binary=scipy scipy | ||
- name: Install package | ||
shell: bash -l {0} | ||
run: | | ||
python -m pip install . | ||
- name: Run tests | ||
shell: bash -l {0} | ||
run: | | ||
pytest -v --cov numkit --cov-report=xml src/numkit/tests | ||
- name: Codecov | ||
uses: codecov/codecov-action@v1.5.2 | ||
with: | ||
file: ./coverage.xml | ||
fail_ci_if_error: true |
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