Skip to content

Commit

Permalink
Codecov - don't fail pipelines for project cov changes (Significant-G…
Browse files Browse the repository at this point in the history
…ravitas#3327)

Co-authored-by: Nicholas Tindle <nicktindle@outlook.com>
  • Loading branch information
vlad-ko and ntindle authored Apr 26, 2023
1 parent 749b1bb commit 1e71f95
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 1 deletion.
5 changes: 5 additions & 0 deletions autogpt/memory/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
14 changes: 13 additions & 1 deletion codecov.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,16 @@ coverage:
project:
default:
target: auto
threshold: 1%
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

0 comments on commit 1e71f95

Please sign in to comment.