Skip to content

Commit

Permalink
enh(build,ci): use pytest in travis
Browse files Browse the repository at this point in the history
  • Loading branch information
ankostis committed Oct 3, 2019
1 parent f606ed1 commit 7b2d914
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,13 @@ python:
install:
- pip install Sphinx sphinx_rtd_theme codecov packaging
- "python -c $'import os, packaging.version as version\\nv = version.parse(os.environ.get(\"TRAVIS_TAG\", \"1.0\")).public\\nwith open(\"VERSION\", \"w\") as f: f.write(v)'"
- python setup.py install
- pip install -e .[test]
- cd docs
- make clean html
- cd ..

script:
- python setup.py nosetests --with-coverage --cover-package=graphkit
- pytest -v --cov=graphkit graphkit

deploy:
provider: pypi
Expand Down
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,9 @@
],
extras_require={
'plot': ['pydot', 'matplotlib'],
'test': ['pydot', 'matplotlib', 'pytest'],
'test': ['pydot', 'matplotlib', 'pytest', "pytest-cov"],
},
tests_require=['pytest'],
tests_require=['pytest', "pytest-cov"],
license='Apache-2.0',
keywords=['graph', 'computation graph', 'DAG', 'directed acyclical graph'],
classifiers=[
Expand Down

0 comments on commit 7b2d914

Please sign in to comment.