From e85d340cd8e6d9ac1d30397681b3bfc2dd6517b4 Mon Sep 17 00:00:00 2001 From: Christian Kellner Date: Fri, 4 Dec 2020 18:31:32 +0100 Subject: [PATCH] ci: send coverage data to codecov Integrate with codecov. Define a threshold of 5% to pass. Coverage is cumulative, i.e. all the tests send their coverage to codecov, which will integrate them all into a total. --- .github/codecov.yml | 9 +++++++++ .github/workflows/tests.yml | 3 +++ 2 files changed, 12 insertions(+) create mode 100644 .github/codecov.yml diff --git a/.github/codecov.yml b/.github/codecov.yml new file mode 100644 index 00000000..085ccc75 --- /dev/null +++ b/.github/codecov.yml @@ -0,0 +1,9 @@ +coverage: + status: + patch: no + project: + default: + threshold: 5% +codecov: + require_ci_to_pass: yes +comment: no diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 5155c8d5..07a16b1d 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -27,7 +27,10 @@ jobs: python3 -m pytest \ --pyargs "${{ matrix.test }}" \ --rootdir=. \ + --cov-report=xml --cov=osbuild \ -v + - name: Send coverage to codecov.io + run: bash <(curl -s https://codecov.io/bash) documentation: name: "📚 Documentation"