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]

Upload coverage data to codecov (#140)

Kilian Lieret0464546550ea
diff --git a/.github/workflows/ci_no_llm.yaml b/.github/workflows/ci_no_llm.yaml
index 9f4535f8..0978ef88 100644
--- a/.github/workflows/ci_no_llm.yaml
+++ b/.github/workflows/ci_no_llm.yaml
@@ -32,7 +32,14 @@ jobs:
shell: bash
- name: Install test dependencies
run: |
- pip install pytest
+ pip install pytest pytest-cov
- name: Run pytest
run: |
- pytest
\ No newline at end of file
+ pytest --cov
+ - name: Explicitly convert coverage to xml
+ run: coverage xml
+ - name: Upload coverage reports to Codecov
+ uses: codecov/[email protected]
+ with:
+ token: ${{ secrets.CODECOV_TOKEN }}
+ slug: princeton-nlp/SWE-agent
\ No newline at end of file