Skip to content

Commit

Permalink
add coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
lkeegan committed Jun 14, 2021
1 parent 33a95f9 commit 1e92dc1
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 2 deletions.
4 changes: 4 additions & 0 deletions .coveragerc
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
[run]
source = "sme_contrib"
branch = True
concurrency = "multiprocessing"
9 changes: 8 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,11 @@ jobs:
python-version: ${{ matrix.python-version }}
- run: pip install -r requirements.txt
- run: pip install -r dev-requirements.txt
- run: python -m pytest -v
- run: python -m pytest --cov=sme_contrib --cov-report xml -v
- uses: codecov/codecov-action@v1
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: ./coverage.xml
name: ${{ matrix.os }}-${{ matrix.python-version }}
fail_ci_if_error: true
verbose: true
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
[![python versions](https://img.shields.io/pypi/pyversions/sme_contrib)](https://pypi.org/project/sme_contrib)
[![docs](https://readthedocs.org/projects/sme-contrib/badge/?version=latest)](https://sme-contrib.readthedocs.io)
[![tests](https://github.com/spatial-model-editor/sme_contrib/workflows/Tests/badge.svg)](https://github.com/spatial-model-editor/sme_contrib/actions?query=workflow%3ATests)
[![codecov](https://codecov.io/gh/spatial-model-editor/sme_contrib/branch/master/graph/badge.svg?token=jG4pg9APRN)](https://codecov.io/gh/spatial-model-editor/sme_contrib)
[![sonarcloud quality gate status](https://sonarcloud.io/api/project_badges/measure?project=spatial-model-editor_sme_contrib&metric=alert_status)](https://sonarcloud.io/dashboard?id=spatial-model-editor_sme_contrib)

A collection of useful modules for use with [sme](https://pypi.org/project/sme/),
Expand Down
3 changes: 2 additions & 1 deletion dev-requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
numdifftools
pytest
scipy
pytest-cov
scipy

0 comments on commit 1e92dc1

Please sign in to comment.