From a1006f6d68004ecc94079bcf3c77afcebbf8441a Mon Sep 17 00:00:00 2001 From: Josh Woodward Date: Tue, 11 May 2021 20:52:41 -0400 Subject: [PATCH] enable codecov publishing (#95) --- .github/codecov.yaml | 19 +++++++++++++++++++ .github/workflows/main.yml | 11 +++++------ 2 files changed, 24 insertions(+), 6 deletions(-) create mode 100644 .github/codecov.yaml diff --git a/.github/codecov.yaml b/.github/codecov.yaml new file mode 100644 index 0000000..52dd59f --- /dev/null +++ b/.github/codecov.yaml @@ -0,0 +1,19 @@ +codecov: + require_ci_to_pass: true + +coverage: + precision: 2 + round: down + range: "75...100" + + status: + project: + default: + target: 90 + patch: true + changes: true + +comment: + layout: "header, diff, files" + behavior: default + require_changes: false diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index f52d299..8011e6e 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -126,12 +126,11 @@ jobs: # Use always() to always run this step to publish test results when there are test failures if: ${{ always() }} - # enable this when the `wayfair-incubator/pygitops` repo is public, codecov.io cannot access private repositories - #- name: Publish coverage results to Codecov - # uses: codecov/codecov-action@v1.0.13 - # with: - # file: coverage-${{ matrix.python-version }}.xml - # fail_ci_if_error: true + - name: Publish coverage results to Codecov + uses: codecov/codecov-action@v1.0.13 + with: + file: coverage-${{ matrix.python-version }}.xml + fail_ci_if_error: true build-docs: