Skip to content

Commit

Permalink
Merge pull request #38 from ckoerber/coverage
Browse files Browse the repository at this point in the history
Added coverage action to repo
  • Loading branch information
ckoerber authored Nov 8, 2021
2 parents 5033fc5 + b525f8c commit 8f8f660
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 1 deletion.
14 changes: 13 additions & 1 deletion .github/workflows/pytest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,26 @@ jobs:

steps:
- uses: actions/checkout@v2

- name: Set up Python 3.9
uses: actions/setup-python@v2
with:
python-version: 3.9

- name: Install package
run: |
pip install .[test]
- name: Test with pytest
run: |
cd tests
pytest --headless .
pytest --headless --cov=lsqfitgui --cov-report=xml
- name: Upload tests to Codecov
uses: codecov/codecov-action@v2
with:
file: ./tests/coverage.xml
flags: unittests
env_vars: OS,PYTHON
name: codecov-umbrella
fail_ci_if_error: true
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
[![Documentation Status](https://readthedocs.org/projects/lsqfitgui/badge/?version=latest)](https://lsqfitgui.readthedocs.io/en/latest/?badge=latest)
[![Code Coverage](https://codecov.io/gh/ckoerber/lsqfit-gui/branch/master/graph/badge.svg)](https://codecov.io/gh/ckoerber/lsqfit-gui)
[![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black)

# Lsqfit GUI

Graphical user interface for `lsqfit` using `dash`.
Expand Down
1 change: 1 addition & 0 deletions requirements-dev.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,4 @@ black
sphinx
pydata-sphinx-theme
myst-parser
pytest-cov
11 changes: 11 additions & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,17 @@ exclude =
test =
dash[testing]
pytest
pytest-cov
dev =
numpy
scipy
dash[testing]
pytest
black
sphinx
pydata-sphinx-theme
myst-parser
pytest-cov


[options.package_data]
Expand Down

0 comments on commit 8f8f660

Please sign in to comment.