Skip to content

Commit 9be8c54

Browse files
authored
Merge pull request #210 from OSeMOSYS/coveralls
2 parents 1197393 + d9bccb5 commit 9be8c54

File tree

3 files changed

+7
-4
lines changed

3 files changed

+7
-4
lines changed

.github/workflows/python.yaml

+1-3
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,4 @@ jobs:
3131
env:
3232
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3333
if: matrix.os == 'ubuntu-latest' && matrix.python-version == '3.11'
34-
run: |
35-
pip install --upgrade coveralls
36-
coveralls --service=github
34+
uses: coverallsapp/github-action@v2

docs/contributing.rst

+5
Original file line numberDiff line numberDiff line change
@@ -196,6 +196,10 @@ Find more detailed information in `creating a PR`_. You might also want to open
196196
the PR as a draft first and mark it as ready for review after the feedbacks
197197
from the continuous integration (CI) system or any required fixes.
198198

199+
We track test coverage using coveralls_. You can check the coverage
200+
of your PR by clicking on the "details" link in the "Coverage" section of
201+
the pull request checks. Try to ensure that your pull requests always increase
202+
test coverage.
199203

200204
Troubleshooting
201205
---------------
@@ -281,6 +285,7 @@ on PyPI_, the following steps can be used to release a new version for
281285
.. |tox| replace:: ``tox``
282286

283287

288+
.. _coveralls: https://coveralls.io/github/OSeMOSYS/otoole
284289
.. _black: https://pypi.org/project/black/
285290
.. _CommonMark: https://commonmark.org/
286291
.. _contribution-guide.org: https://www.contribution-guide.org/

setup.cfg

+1-1
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ console_scripts =
8787
# CAUTION: --cov flags may prohibit setting breakpoints while debugging.
8888
# Comment those flags to avoid this pytest issue.
8989
addopts =
90-
--cov otoole --cov-report html
90+
--cov otoole --cov-report lcov
9191
--verbose
9292
-s
9393
# --log-cli-level=10

0 commit comments

Comments
 (0)