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: Upload trajectories from test runs (#777)

Kilian Lieretf618f1bab265
diff --git a/.github/workflows/pytest.yaml b/.github/workflows/pytest.yaml
index 2add4eaa..19eb15a1 100644
--- a/.github/workflows/pytest.yaml
+++ b/.github/workflows/pytest.yaml
@@ -54,7 +54,14 @@ jobs:
- name: Run pytest
uses: sjvrijn/pytest-last-failed@v2
with:
- pytest-args: '-s --cov'
+ pytest-args: '--cov'
+ - name: Upload logs & trajectories
+ uses: actions/upload-artifact@v4
+ with:
+ name: trajectories
+ path: |
+ trajectories
+ !trajectories/demonstrations/**
- name: Explicitly convert coverage to xml
run: coverage xml
- name: Upload coverage reports to Codecov