From c65491a70eef2d1f693d1f3f23d9f4aa60b12fa5 Mon Sep 17 00:00:00 2001 From: Idan Morad Date: Thu, 2 Jan 2020 14:13:44 +0200 Subject: [PATCH] * update test env (#21) * * update test env * add travis file * fix tests * fix tests * fix tests * fix tests * fix tests * fix tests * fix tests * fix tests * fix tests * fix tox-travis * fix conv * fix conv * add python 3.7 and 3.8 to travis * add coverall and travis badge * add badge and setup attr --- .travis.yml | 19 +++++++++++++++++++ README.md | 5 ++++- requirements-dev.txt | 2 +- setup.py | 2 ++ tests/utils.py | 2 +- tox.ini | 5 +++-- 6 files changed, 30 insertions(+), 5 deletions(-) create mode 100644 .travis.yml diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..6d9788d --- /dev/null +++ b/.travis.yml @@ -0,0 +1,19 @@ +language: python + +python: + - 3.6 + - 3.7 + - 3.8 + +before_install: + - sudo apt-get install graphviz + +install: + - pip install -U pip + - pip install tox-travis + +script: + - tox + +after_success: + - coveralls \ No newline at end of file diff --git a/README.md b/README.md index d63ff0c..2ca2c95 100644 --- a/README.md +++ b/README.md @@ -1,11 +1,14 @@ # Data Science Utils: Frequently Used Methods for Data Science [![License: MIT](https://img.shields.io/github/license/idanmoradarthas/DataScienceUtils)](https://opensource.org/licenses/MIT) -![GitHub release (latest SemVer)](https://img.shields.io/github/v/release/idanmoradarthas/DataScienceUtils)[![GitHub issues](https://img.shields.io/github/issues/idanmoradarthas/DataScienceUtils)](https://github.com/idanmoradarthas/DataScienceUtils/issues) +![GitHub release (latest SemVer)](https://img.shields.io/github/v/release/idanmoradarthas/DataScienceUtils) +[![GitHub issues](https://img.shields.io/github/issues/idanmoradarthas/DataScienceUtils)](https://github.com/idanmoradarthas/DataScienceUtils/issues) [![Documentation Status](https://readthedocs.org/projects/datascienceutils/badge/?version=latest)](https://datascienceutils.readthedocs.io/en/latest/?badge=latest) ![PyPI - Python Version](https://img.shields.io/pypi/pyversions/data-science-utils) ![PyPI - Wheel](https://img.shields.io/pypi/wheel/data-science-utils) [![PyPI version](https://badge.fury.io/py/data-science-utils.svg)](https://badge.fury.io/py/data-science-utils) [![Anaconda-Server Badge](https://anaconda.org/idanmorad/data-science-utils/badges/version.svg)](https://anaconda.org/idanmorad/data-science-utils) +[![Build Status](https://travis-ci.org/idanmoradarthas/DataScienceUtils.svg?branch=master)](https://travis-ci.org/idanmoradarthas/DataScienceUtils) +[![Coverage Status](https://coveralls.io/repos/github/idanmoradarthas/DataScienceUtils/badge.svg?branch=master)](https://coveralls.io/github/idanmoradarthas/DataScienceUtils?branch=master) Data Science Utils extends the Scikit-Learn API and Matplotlib API to provide simple methods that simplify task and diff --git a/requirements-dev.txt b/requirements-dev.txt index b4bea27..4ad321d 100644 --- a/requirements-dev.txt +++ b/requirements-dev.txt @@ -1,3 +1,3 @@ -pytest==5.2.4 +pytest==5.3.2 pytest-cov==2.8.1 nose==1.3.7 \ No newline at end of file diff --git a/setup.py b/setup.py index a3ae905..7783e04 100644 --- a/setup.py +++ b/setup.py @@ -22,6 +22,8 @@ "Intended Audience :: Science/Research", "License :: OSI Approved :: MIT License", "Programming Language :: Python :: 3.6", + "Programming Language :: Python :: 3.7", + "Programming Language :: Python :: 3.8", "Topic :: Scientific/Engineering :: Artificial Intelligence"], keywords="data-science utilities python machine-learning scikit-learn matplotlib", packages=find_packages(exclude=['contrib', 'docs', 'tests']), diff --git a/tests/utils.py b/tests/utils.py index 08649e1..d539369 100644 --- a/tests/utils.py +++ b/tests/utils.py @@ -1,6 +1,6 @@ from matplotlib.testing.compare import compare_images -TOLERANCE = 11 +TOLERANCE = 50 def compare_images_paths(first: str, second: str) -> None: diff --git a/tox.ini b/tox.ini index 9b4c4f0..a36c928 100644 --- a/tox.ini +++ b/tox.ini @@ -1,6 +1,7 @@ [tox] -envlist = py36 +envlist = py36,py37,py38 skipsdist = False +skip_missing_interpreters = true [testenv] deps = -r requirements.txt @@ -8,4 +9,4 @@ deps = -r requirements.txt setenv = PYTHONPATH = {toxinidir} commands = - pytest --cov-config '{toxinidir}/.coveragerc' --cov='{toxinidir}' {posargs} \ No newline at end of file + pytest --cov-config '{toxinidir}/.coveragerc' --cov='{toxinidir}/ds_utils' {posargs} \ No newline at end of file