Skip to content

Commit 538622d

Browse files
authored
Add coveralls support (#342)
* Add coveralls support * Set environment on CI * Fix coverage * Add coveralls dependency * Try removing service_name * Another try to upload to coveralls
1 parent cc23a40 commit 538622d

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

.github/workflows/python-package.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ jobs:
4848
run: make pytest
4949
lint:
5050
runs-on: ubuntu-20.04
51+
environment: CI
5152
steps:
5253
- uses: actions/checkout@v2
5354
- uses: actions/setup-python@v2
@@ -70,3 +71,11 @@ jobs:
7071
run: |
7172
make pycodestyle
7273
make flake8
74+
- name: Run coveralls
75+
env:
76+
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}
77+
run: |
78+
pip install coveralls
79+
coverage run setup.py test
80+
coverage report -m
81+
coveralls

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,6 @@ pythonpath = [
9797
[tool.coverage.run]
9898
branch = true
9999
source = ["src/onelogin/saml2"]
100-
ignore_errors = true
101100

102101
[tool.coverage.report]
103102
exclude_lines = [
@@ -110,6 +109,7 @@ exclude_lines = [
110109
"if TYPE_CHECKING:",
111110
"if typing.TYPE_CHECKING:",
112111
]
112+
ignore_errors = true
113113

114114
[tool.coverage.html]
115115
directory = "cov_html"

0 commit comments

Comments
 (0)