Skip to content

Commit

Permalink
Merge pull request #14 from Becksteinlab/gh-ci
Browse files Browse the repository at this point in the history
switch from Travis CI to GitHub actions
  • Loading branch information
orbeckst committed Jul 20, 2021
2 parents dbb765f + cacedd8 commit 41f99e0
Show file tree
Hide file tree
Showing 4 changed files with 76 additions and 58 deletions.
69 changes: 69 additions & 0 deletions .github/workflows/ci.yaml
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
52 changes: 0 additions & 52 deletions .travis.yml

This file was deleted.

4 changes: 2 additions & 2 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,9 @@ Contributions are very welcome in all forms, especially through issue
reports and pull requests.


.. |build| image:: https://travis-ci.org/Becksteinlab/numkit.svg?branch=master
:target: https://travis-ci.org/Becksteinlab/numkit
.. |build| image:: https://github.com/Becksteinlab/numkit/actions/workflows/ci.yaml/badge.svg?branch=master
:alt: Build status
:target: https://github.com/Becksteinlab/numkit/actions/workflows/ci.yaml
:scale: 100%

.. |docs| image:: https://readthedocs.org/projects/numkit/badge/?version=latest
Expand Down
9 changes: 5 additions & 4 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,15 +27,16 @@
'Intended Audience :: Science/Research',
'License :: OSI Approved :: BSD License',
'Operating System :: POSIX',
'Programming Language :: Python',
'Operating System :: MacOS :: MacOS X',
'Operating System :: Microsoft :: Windows ',
'Programming Language :: Python',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
'Topic :: Scientific/Engineering',
'Topic :: Software Development :: Libraries :: Python Modules',
],
Expand All @@ -45,6 +46,6 @@
license='BSD',
long_description=open('README.rst').read(),
long_description_content_type='text/x-rst',
tests_require = ['numpy>=1.9', 'pytest'],
tests_require = ['pytest'],
install_requires=['numpy>=1.9', 'scipy>=1.0', 'six']
)

0 comments on commit 41f99e0

Please sign in to comment.