From 52a0f85f71693c53f6f452f92e043e8c4298b4c3 Mon Sep 17 00:00:00 2001 From: Ikaros Date: Sun, 13 Dec 2020 23:15:14 +0800 Subject: [PATCH] chore(codecov): :sparkles: add cov file for repo --- .github/workflows/test.yaml | 5 +++++ README.rst | 3 +++ pytest.ini | 2 ++ 3 files changed, 10 insertions(+) create mode 100644 pytest.ini 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