From 70d3b9b5eec2f084baeb2a48490f809140ea32aa Mon Sep 17 00:00:00 2001 From: Owais Kazi Date: Tue, 19 Jul 2022 12:13:01 -0700 Subject: [PATCH] Adds codecov to SDK repo Signed-off-by: Owais Kazi --- .codecov.yml | 10 ++++++++++ .github/workflows/codecov.yml | 12 ++++++++++++ 2 files changed, 22 insertions(+) create mode 100644 .codecov.yml create mode 100644 .github/workflows/codecov.yml diff --git a/.codecov.yml b/.codecov.yml new file mode 100644 index 00000000..b559f5b6 --- /dev/null +++ b/.codecov.yml @@ -0,0 +1,10 @@ +--- +coverage: + status: + project: + default: + target: 98% +ignore: + - '**/tests/*.py' + - '**/test/*.js' + - '**/test/*.ts' \ No newline at end of file diff --git a/.github/workflows/codecov.yml b/.github/workflows/codecov.yml new file mode 100644 index 00000000..1c18dad9 --- /dev/null +++ b/.github/workflows/codecov.yml @@ -0,0 +1,12 @@ +name: Code Coverage +on: [push, pull_request] + +jobs: + codecov: + runs-on: ubuntu-latest + steps: + - name: Upload Coverage Report + if: success() + uses: codecov/codecov-action@v2 + with: + files: ./codecov.xml