Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create code coverage when running pytest in GHA #782

Merged
merged 3 commits into from
Mar 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,9 @@ jobs:
python -m pip install -e .[dev]
- name: Test with pytest
run: |
python -m pytest -v
python -m pytest --cov -v
- name: Upload coverage reports to Codecov
uses: codecov/[email protected]
with:
token: ${{ secrets.CODECOV_TOKEN }}
slug: python-rope/rope
6 changes: 5 additions & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
rope -- the world's most advanced open source Python refactoring library
=========================================================================

|Build status badge| |Latest version badge| |Download count badge| |ReadTheDocs status badge|
|Build status badge| |Latest version badge| |Download count badge| |ReadTheDocs status badge| |Codecov badge|

.. |Build status badge| image:: https://github.com/python-rope/rope/actions/workflows/main.yml/badge.svg
:target: https://github.com/python-rope/rope/actions/workflows/main.yml
Expand All @@ -23,6 +23,10 @@
:target: https://rope.readthedocs.io/en/latest/?badge=latest
:alt: Documentation Status

.. |Codecov badge| image:: https://codecov.io/gh/python-rope/rope/graph/badge.svg?token=pU08MBXFIS
:target: https://codecov.io/gh/python-rope/rope
:alt: Codecov

Overview
========

Expand Down
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ doc = [
]
dev = [
'pytest>=7.0.1',
'pytest-cov>=4.1.0',
'pytest-timeout>=2.1.0',
'build>=0.7.0',
'pre-commit>=2.20.0',
Expand Down
Loading