From bf0616a08278de36dfa048281632c49b78d28a93 Mon Sep 17 00:00:00 2001 From: Tim Head Date: Fri, 26 Apr 2019 15:40:48 +0200 Subject: [PATCH] [MRG] Configure coverage creation and checks (#757) * Update .codecov.yml * Create .coveragerc --- .codecov.yml | 11 +++++++++-- .coveragerc | 6 ++++++ 2 files changed, 15 insertions(+), 2 deletions(-) create mode 100644 .coveragerc diff --git a/.codecov.yml b/.codecov.yml index e01231505..62be777bf 100644 --- a/.codecov.yml +++ b/.codecov.yml @@ -1,3 +1,10 @@ +# show coverage in CI status, not as a comment. +comment: off coverage: - ignore: - - "skopt/tests/*" + status: + project: + default: + target: auto + patch: + default: + target: 20% diff --git a/.coveragerc b/.coveragerc new file mode 100644 index 000000000..d8299702a --- /dev/null +++ b/.coveragerc @@ -0,0 +1,6 @@ +[run] +omit = + # this file comes from versioneer and we don’t test it + */_version.py + # these are our tests, don't count them towards coverage + skopt/tests/*