Skip to content

AutoGPT is the vision of accessible AI for everyone, to use and to build on. Our mission is to provide the tools, so that you can focus on what matters.

Codecov - don't fail pipelines for project cov changes (#3327)

vlad1e71f952f980
diff --git a/autogpt/memory/base.py b/autogpt/memory/base.py
index 83d807506a..a6c92db6fd 100644
--- a/autogpt/memory/base.py
+++ b/autogpt/memory/base.py
@@ -10,20 +10,25 @@ cfg = Config()
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 61acfc082b..15a83ad26e 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