Skip to content

Commit

Permalink
add coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
reynoldsnlp committed Aug 30, 2019
1 parent d7a663b commit 963e295
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .coveragerc
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[run]
source=udar
5 changes: 4 additions & 1 deletion .github/workflows/pythonpackage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,7 @@ jobs:
- name: Test with pytest
run: |
pip install pytest
python3 -m pytest
pip install codecov
python3 -m pytest --cov --cov-append --cov-report xml test/
# pytest --doctest-modules {envsitepackagesdir}/udar
codecov --token=c0724429-fff4-4851-97d6-052d1c1d1794
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,5 @@ __pycache__
.eggs
.tox
udar.egg-info
coverage.xml
.coverage
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# UDAR(enie)

[![Actions Status](https://github.com/reynoldsnlp/udar/workflows/pytest/badge.svg)](https://github.com/reynoldsnlp/udar/actions)
[![codecov](https://codecov.io/gh/reynoldsnlp/udar/branch/master/graph/badge.svg)](https://codecov.io/gh/reynoldsnlp/udar)

**U**DAR **D**oes **A**ccented **R**ussian: A finite-state morphological
analyzer of Russian that handles stressed wordforms.
Expand Down
3 changes: 2 additions & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ envlist = py36,py37
[testenv]
deps = pandas
pytest
pytest-cov
commands =
pytest
pytest --cov --cov-append --cov-report term-missing test/
pytest --doctest-modules {envsitepackagesdir}/udar

0 comments on commit 963e295

Please sign in to comment.