Skip to content

Commit

Permalink
coverage workflow added (#92)
Browse files Browse the repository at this point in the history
* coverage workflow added
  • Loading branch information
mhindery committed Apr 11, 2020
1 parent 8b066a2 commit f6ed999
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 6 deletions.
9 changes: 8 additions & 1 deletion .github/workflows/python-package.yml
Expand Up @@ -37,4 +37,11 @@ jobs:
if: ${{ matrix.django-version }} == "3.0"
continue-on-error: true
- name: Tests
run: tox -e py${{ matrix.python-version }}-django${{ matrix.django-version }}
run: tox -e py${{ matrix.python-version }}-django${{ matrix.django-version }}
- uses: codecov/codecov-action@v1
with:
# token: ${{ secrets.CODECOV_TOKEN }} # not required for public repos
file: ./cov.xml # optional
# flags: unittests # optional
# name: codecov-umbrella # optional
# fail_ci_if_error: true # optional (default = false)
1 change: 1 addition & 0 deletions .gitignore
Expand Up @@ -26,3 +26,4 @@ tags
venv
.pytest_cache
.mypy_cache
cov.xml
5 changes: 5 additions & 0 deletions README.rst
Expand Up @@ -27,6 +27,11 @@ djangosaml2idp
:target: https://www.apache.org/licenses/LICENSE-2.0
:alt: Apache 2.0 License

.. image:: https://codecov.io/gh/ota-insight/djangosaml2idp/branch/master/graph/badge.svg
:scale: 100%
:target: https://codecov.io/gh/ota-insight/djangosaml2idp
:alt: Code coverage


djangosaml2idp implements the Identity Provider side of the SAML2 protocol for Django.
It builds on top of `PySAML2 <https://github.com/IdentityPython/pysaml2>`_, and is production-ready.
Expand Down
5 changes: 0 additions & 5 deletions codecov.yml

This file was deleted.

1 change: 1 addition & 0 deletions setup.cfg
Expand Up @@ -33,6 +33,7 @@ addopts =
-rX
--cov=djangosaml2idp
--cov-report=term-missing
--cov-report=xml:cov.xml
django_find_project = false
norecursedirs = env
testpaths = tests/
Expand Down

0 comments on commit f6ed999

Please sign in to comment.