Skip to content

Commit

Permalink
Merge pull request metagraph-dev#2 from eriknw/coverage
Browse files Browse the repository at this point in the history
Add coverage badge
  • Loading branch information
eriknw committed Jul 11, 2020
2 parents c4bd416 + 50114de commit 5835748
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 2 deletions.
9 changes: 7 additions & 2 deletions .travis.yml
Expand Up @@ -17,13 +17,18 @@ install:
- conda update -q conda
- conda info -a
# create and activate environment
- conda create -n grblas -c conda-forge python=$TRAVIS_PYTHON_VERSION dask pandas scipy networkx numba cffi graphblas pytest-runner
- conda create -n grblas -c conda-forge python=$TRAVIS_PYTHON_VERSION dask pandas scipy networkx numba cffi graphblas pytest-runner coverage
- conda activate grblas
- pip install git+https://github.com/jim22k/grblas
- pip install -e .

script:
- pytest --runslow
- coverage run `which py.test` --runslow

after_success:
- coverage report --show-missing
- conda install -c conda-forge coveralls
- coveralls

notifications:
email: false
1 change: 1 addition & 0 deletions README.md
@@ -1,6 +1,7 @@
# dask-grblas

[![Build Status](https://travis-ci.org/eriknw/dask-grblas.svg?branch=master)](https://travis-ci.org/eriknw/dask-grblas)
[![Coverage Status](https://coveralls.io/repos/eriknw/dask-grblas/badge.svg?branch=master)](https://coveralls.io/r/eriknw/dask-grblas)

This is a work in progress. It is ready to be played with (lightly), but not used for any serious work.

Expand Down
14 changes: 14 additions & 0 deletions setup.cfg
Expand Up @@ -3,7 +3,21 @@ test=pytest

[flake8]
max-line-length = 120
exclude = tests/

[tool:pytest]
markers:
slow: Skipped unless --runslow passed

[coverage:run]
source = dask_grblas

[coverage:report]
# Regexes for lines to exclude from consideration
exclude_lines =
pragma: no cover

raise AssertionError
raise NotImplementedError

ignore_errors = True

0 comments on commit 5835748

Please sign in to comment.