Skip to content

Commit

Permalink
* update test env (#21)
Browse files Browse the repository at this point in the history
* * 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
  • Loading branch information
idanmoradarthas committed Jan 2, 2020
1 parent c7fa035 commit c65491a
Show file tree
Hide file tree
Showing 6 changed files with 30 additions and 5 deletions.
19 changes: 19 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -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
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion requirements-dev.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
pytest==5.2.4
pytest==5.3.2
pytest-cov==2.8.1
nose==1.3.7
2 changes: 2 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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']),
Expand Down
2 changes: 1 addition & 1 deletion tests/utils.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from matplotlib.testing.compare import compare_images

TOLERANCE = 11
TOLERANCE = 50


def compare_images_paths(first: str, second: str) -> None:
Expand Down
5 changes: 3 additions & 2 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
[tox]
envlist = py36
envlist = py36,py37,py38
skipsdist = False
skip_missing_interpreters = true

[testenv]
deps = -r requirements.txt
-r requirements-dev.txt
setenv =
PYTHONPATH = {toxinidir}
commands =
pytest --cov-config '{toxinidir}/.coveragerc' --cov='{toxinidir}' {posargs}
pytest --cov-config '{toxinidir}/.coveragerc' --cov='{toxinidir}/ds_utils' {posargs}

0 comments on commit c65491a

Please sign in to comment.