diff --git a/.github/codecov.yml b/.github/codecov.yml new file mode 100644 index 00000000..70390a69 --- /dev/null +++ b/.github/codecov.yml @@ -0,0 +1,17 @@ +coverage: + status: + project: + default: + target: 75 + threshold: 0.1 + patch: + default: + target: 75 +comment: + layout: "diff, files" + behavior: default + require_changes: true # if true: only post the comment if coverage changes + branches: # branch names that can post comment + - "main" +ignore: + - "virtualizarr/tests" # ignore folders and all its contents diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 0550236f..81ed54be 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -58,3 +58,4 @@ jobs: env_vars: OS,PYTHON name: codecov-umbrella fail_ci_if_error: false + token: ${{ secrets.CODECOV_TOKEN }}