Skip to content

Commit 4e55b30

Browse files
committed
enh(build,ci): use pytest in travis
1 parent f606ed1 commit 4e55b30

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

.travis.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,13 @@ python:
88
install:
99
- pip install Sphinx sphinx_rtd_theme codecov packaging
1010
- "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)'"
11-
- python setup.py install
11+
- pip install -e .[test]
1212
- cd docs
1313
- make clean html
1414
- cd ..
1515

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

1919
deploy:
2020
provider: pypi

setup.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,9 @@
3434
],
3535
extras_require={
3636
'plot': ['pydot', 'matplotlib'],
37-
'test': ['pydot', 'matplotlib', 'pytest'],
37+
'test': ['pydot', 'matplotlib', 'pytest', "pytest-cov"],
3838
},
39-
tests_require=['pytest'],
39+
tests_require=['pytest', "pytest-cov"],
4040
license='Apache-2.0',
4141
keywords=['graph', 'computation graph', 'DAG', 'directed acyclical graph'],
4242
classifiers=[

0 commit comments

Comments
 (0)