Skip to content

SWE-agent takes a GitHub issue and tries to automatically fix it, using your LM of choice. It can also be employed for offensive cybersecurity or competitive coding challenges. [NeurIPS 2024]

Add codecov config and badge

Kilian Lieret6820e3e007c4
diff --git a/README.md b/README.md
index f2961317..09ec9169 100644
--- a/README.md
+++ b/README.md
@@ -196,6 +196,7 @@ MIT. Check `LICENSE`.
<div align="center">
[![Tests (no LLM)](https://github.com/princeton-nlp/SWE-agent/actions/workflows/ci_no_llm.yaml/badge.svg)](https://github.com/princeton-nlp/SWE-agent/actions/workflows/ci_no_llm.yaml)
+[![codecov](https://codecov.io/gh/princeton-nlp/SWE-agent/graph/badge.svg?token=18XAVDK365)](https://codecov.io/gh/princeton-nlp/SWE-agent)
[![pre-commit.ci status](https://results.pre-commit.ci/badge/github/princeton-nlp/SWE-agent/main.svg)](https://results.pre-commit.ci/latest/github/princeton-nlp/SWE-agent/main)
[![Markdown links](https://github.com/princeton-nlp/SWE-agent/actions/workflows/check-links.yaml/badge.svg)](https://github.com/princeton-nlp/SWE-agent/actions/workflows/check-links.yaml)
diff --git a/codecov.yml b/codecov.yml
new file mode 100644
index 00000000..6b36acf1
--- /dev/null
+++ b/codecov.yml
@@ -0,0 +1,16 @@
+# Configuration for codecov
+coverage:
+ status:
+ project:
+ default:
+ # If we get < 50% coverage, codecov is gonna mark it a failure
+ target: 50%
+ threshold: null
+ patch:
+ default:
+ # Codecov won't mark it as a failure if a patch is not covered well
+ informational: true
+github_checks:
+ # Don't mark lines that aren't covered
+ annotations: false
+