From ff6bdb6f589cfaf1f290471da4d182ecc86a82c8 Mon Sep 17 00:00:00 2001 From: Max Jones <14077947+maxrjones@users.noreply.github.com> Date: Fri, 20 Dec 2024 15:29:44 -0700 Subject: [PATCH] Configure codecov to ignore tests folder (#362) * Configure codecov to ignore tests folder * Use codecov token to avoid rate limiting * Decrease coverage target for now --- .github/codecov.yml | 17 +++++++++++++++++ .github/workflows/main.yml | 1 + 2 files changed, 18 insertions(+) create mode 100644 .github/codecov.yml 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 }}