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: pytest --last-fail and -x support (#559)

Kilian Lieret6f3c3090496d
diff --git a/.github/workflows/pytest.yaml b/.github/workflows/pytest.yaml
index 1d78e771..5593d54f 100644
--- a/.github/workflows/pytest.yaml
+++ b/.github/workflows/pytest.yaml
@@ -47,8 +47,9 @@ jobs:
run: |
uv pip install --python ${Python_ROOT_DIR} '.[dev]'
- name: Run pytest
- run: |
- pytest --cov
+ uses: sjvrijn/pytest-last-failed@v2
+ with:
+ pytest-args: '--exitfirst --cov'
- name: Explicitly convert coverage to xml
run: coverage xml
- name: Upload coverage reports to Codecov