From 634f6d71f748da76e1970b05687616f078ca018f Mon Sep 17 00:00:00 2001 From: kiukchung <43595115+kiukchung@users.noreply.github.com> Date: Thu, 7 Sep 2023 01:57:42 +0000 Subject: [PATCH] Enable codecov flags and coverage carryover for keras_core and keras_core.applications (#841) --- .gitignore | 2 +- codecov.yml | 23 +++++++++++++++++++++++ setup.cfg | 10 ++++++++-- 3 files changed, 32 insertions(+), 3 deletions(-) diff --git a/.gitignore b/.gitignore index 8bf2f2cf8..d955216fd 100644 --- a/.gitignore +++ b/.gitignore @@ -18,4 +18,4 @@ dist/** examples/**/*.jpg .python-version .coverage -coverage.xml \ No newline at end of file +*coverage.xml \ No newline at end of file diff --git a/codecov.yml b/codecov.yml index a785db3cc..63ad8099c 100644 --- a/codecov.yml +++ b/codecov.yml @@ -9,4 +9,27 @@ coverage: default: target:auto +comment: + layout: "header, reach, diff, flags, files" + behavior: default + require_changes: no + require_base: no + require_head: yes + show_carryforward_flags: yes +flag_management: + default_rules: + carryforward: false + statuses: + - type: project + target: auto + - type: patch + target: auto + individual_flags: + - name: keras_core + paths: + - keras_core + - name: keras_core.applications + paths: + - keras_core/applications + carryforward: true diff --git a/setup.cfg b/setup.cfg index c0ac8c4e5..566293607 100644 --- a/setup.cfg +++ b/setup.cfg @@ -20,10 +20,16 @@ exclude_lines = pragma: no cover @abstract raise NotImplementedError -omit = *_test.py +omit = + */*_test.py + +[coverage:run] +omit = + */*_test.py + +branch = True [flake8] - ignore = # Conflicts with black E203