From 1e71f952f980b348629dd75477600e6b43e3f6a3 Mon Sep 17 00:00:00 2001 From: vlad Date: Wed, 26 Apr 2023 10:54:22 -0400 Subject: [PATCH] Codecov - don't fail pipelines for project cov changes (#3327) Co-authored-by: Nicholas Tindle --- autogpt/memory/base.py | 5 +++++ codecov.yml | 14 +++++++++++++- 2 files changed, 18 insertions(+), 1 deletion(-) diff --git a/autogpt/memory/base.py b/autogpt/memory/base.py index 83d807506a0b..a6c92db6fdcd 100644 --- a/autogpt/memory/base.py +++ b/autogpt/memory/base.py @@ -10,20 +10,25 @@ class MemoryProviderSingleton(AbstractSingleton): @abc.abstractmethod def add(self, data): + """Adds to memory""" pass @abc.abstractmethod def get(self, data): + """Gets from memory""" pass @abc.abstractmethod def clear(self): + """Clears memory""" pass @abc.abstractmethod def get_relevant(self, data, num_relevant=5): + """Gets relevant memory for""" pass @abc.abstractmethod def get_stats(self): + """Get stats from memory""" pass diff --git a/codecov.yml b/codecov.yml index 61acfc082bdc..15a83ad26ead 100644 --- a/codecov.yml +++ b/codecov.yml @@ -3,4 +3,16 @@ coverage: project: default: target: auto - threshold: 1% \ No newline at end of file + threshold: 1% + informational: true + patch: + default: + target: 80% + +## Please add this section once you've separated your coverage uploads for unit and integration tests +# +# flags: +# unit-tests: +# carryforward: true +# integration-tests: +# carryforward: true