Skip to content

Commit

Permalink
chore(codecov): ✨ add cov file for repo
Browse files Browse the repository at this point in the history
  • Loading branch information
MerleLiuKun committed Dec 13, 2020
1 parent c1380e5 commit 52a0f85
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,11 @@ jobs:
run: |
. venv/bin/activate
pytest
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v1
with:
file: ./coverage.xml
fail_ci_if_error: true

lint:
name: black
Expand Down
3 changes: 3 additions & 0 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ A simple Python wrapper around for Twitter API v2 :sparkles: :cake: :sparkles:.
:target: https://github.com/sns-sdks/python-facebook/actions
:alt: Build Status

.. image:: https://codecov.io/gh/sns-sdks/python-twitter/branch/master/graph/badge.svg
:target: https://codecov.io/gh/sns-sdks/python-facebook
:alt: Codecov

============
Introduction
Expand Down
2 changes: 2 additions & 0 deletions pytest.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[pytest]
addopts = --cov=pytwitter --cov-report xml

0 comments on commit 52a0f85

Please sign in to comment.