Skip to content

Commit

Permalink
Add coveralls support (#342)
Browse files Browse the repository at this point in the history
* Add coveralls support

* Set environment on CI

* Fix coverage

* Add coveralls dependency

* Try removing service_name

* Another try to upload to coveralls
  • Loading branch information
pitbulk authored Jan 7, 2023
1 parent cc23a40 commit 538622d
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
9 changes: 9 additions & 0 deletions .github/workflows/python-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ jobs:
run: make pytest
lint:
runs-on: ubuntu-20.04
environment: CI
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
Expand All @@ -70,3 +71,11 @@ jobs:
run: |
make pycodestyle
make flake8
- name: Run coveralls
env:
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}
run: |
pip install coveralls
coverage run setup.py test
coverage report -m
coveralls
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,6 @@ pythonpath = [
[tool.coverage.run]
branch = true
source = ["src/onelogin/saml2"]
ignore_errors = true

[tool.coverage.report]
exclude_lines = [
Expand All @@ -110,6 +109,7 @@ exclude_lines = [
"if TYPE_CHECKING:",
"if typing.TYPE_CHECKING:",
]
ignore_errors = true

[tool.coverage.html]
directory = "cov_html"
Expand Down

0 comments on commit 538622d

Please sign in to comment.