diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index ac7e0c5..86d205d 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -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 diff --git a/README.rst b/README.rst index 6c96e18..82596f0 100644 --- a/README.rst +++ b/README.rst @@ -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 diff --git a/pytest.ini b/pytest.ini new file mode 100644 index 0000000..1456db3 --- /dev/null +++ b/pytest.ini @@ -0,0 +1,2 @@ +[pytest] +addopts = --cov=pytwitter --cov-report xml \ No newline at end of file