Skip to content

[SWEBench] Add evaluation support for SWEBench #805

[SWEBench] Add evaluation support for SWEBench

[SWEBench] Add evaluation support for SWEBench #805

Workflow file for this run

name: Pytest
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
on:
push:
branches:
- main
paths-ignore:
- 'docs/**'
- 'README.md'
- 'mkdocs.yml'
- '.cursor/**'
- '.github/workflows/build-docs.yaml'
- '.github/workflows/release.yaml'
- '.github/workflows/pylint.yaml'
pull_request:
branches:
- main
paths-ignore:
- 'docs/**'
- 'README.md'
- 'mkdocs.yml'
- '.cursor/**'
- '.github/workflows/build-docs.yaml'
- '.github/workflows/release.yaml'
- '.github/workflows/pylint.yaml'
jobs:
test:
runs-on: ubuntu-latest
defaults:
run:
shell: bash -l {0}
steps:
- name: Checkout code
uses: actions/checkout@v5
- uses: actions/setup-python@v5
with:
python-version: '3.11'
- name: Update apt package list
run: sudo apt-get update
- name: Install podman
run: sudo apt-get install -y podman
- name: Install bubblewrap
run: |
sudo apt-get install -y bubblewrap
sudo chmod u+s $(which bwrap) # ensure we can set uid permissions
- name: Install singularity/apptainer
run: |
sudo apt-get install -y wget
cd /tmp
wget https://github.com/apptainer/apptainer/releases/download/v1.3.4/apptainer_1.3.4_amd64.deb
sudo dpkg -i apptainer_1.3.4_amd64.deb || sudo apt-get install -f -y
# Create singularity symlink for compatibility
sudo ln -sf /usr/bin/apptainer /usr/bin/singularity
- name: Install uv
run: |
curl -LsSf https://astral.sh/uv/install.sh | sh
- name: Install dependencies
run: |
uv pip install --python ${Python_ROOT_DIR} -e '.[full]'
- name: Run pytest
run: pytest -v --cov --cov-branch --cov-report=xml -n auto
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v5
with:
token: ${{ secrets.CODECOV_TOKEN }}
slug: SWE-agent/mini-swe-agent