Skip to content

Commit

Permalink
enable codecov publishing (#95)
Browse files Browse the repository at this point in the history
  • Loading branch information
jdw6359 authored May 12, 2021
1 parent 6d70d09 commit a1006f6
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 6 deletions.
19 changes: 19 additions & 0 deletions .github/codecov.yaml
Original file line number Diff line number Diff line change
@@ -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
11 changes: 5 additions & 6 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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/[email protected]
# with:
# file: coverage-${{ matrix.python-version }}.xml
# fail_ci_if_error: true
- name: Publish coverage results to Codecov
uses: codecov/[email protected]
with:
file: coverage-${{ matrix.python-version }}.xml
fail_ci_if_error: true


build-docs:
Expand Down

0 comments on commit a1006f6

Please sign in to comment.