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]

CI: add test analytics (#1070)

Katiaa229e3ba6760
diff --git a/.github/workflows/pytest.yaml b/.github/workflows/pytest.yaml
index 7dd68b00..287b141d 100644
--- a/.github/workflows/pytest.yaml
+++ b/.github/workflows/pytest.yaml
@@ -51,7 +51,7 @@ jobs:
- name: Run pytest
uses: sjvrijn/pytest-last-failed@v2
with:
- pytest-args: '--cov -n auto -s'
+ pytest-args: '--junitxml=test-results.xml --cov -n auto -s'
- name: Upload logs & trajectories
uses: actions/upload-artifact@v4
if: always()
@@ -68,3 +68,8 @@ jobs:
with:
token: ${{ secrets.CODECOV_TOKEN }}
slug: SWE-agent/SWE-agent
+ - name: Upload test results to Codecov
+ if: matrix.python-version == '3.11'
+ uses: codecov/test-results-action@v1
+ with:
+ files: test-results.xml