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: Fix pytest gha (#902)

Kilian Lieret4f3128acfb40
diff --git a/.github/workflows/pytest.yaml b/.github/workflows/pytest.yaml
index dff4f481..8f480443 100644
--- a/.github/workflows/pytest.yaml
+++ b/.github/workflows/pytest.yaml
@@ -1,4 +1,3 @@
-
name: Pytest
env:
@@ -29,7 +28,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
-python-version: ["3.11", "3.12"]
+ python-version: ["3.11", "3.12"]
defaults:
run:
shell: bash -l {0}
@@ -56,12 +55,14 @@ python-version: ["3.11", "3.12"]
uses: actions/upload-artifact@v4
if: always()
with:
- name: trajectories
+ name: trajectories-py${{ matrix.python-version }}
path: |
trajectories/runner/
- name: Explicitly convert coverage to xml
+ if: matrix.python-version == '3.11'
run: coverage xml
- name: Upload coverage reports to Codecov
+ if: matrix.python-version == '3.11'
uses: codecov/[email protected]
with:
token: ${{ secrets.CODECOV_TOKEN }}