Skip to content

AutoGPT is the vision of accessible AI for everyone, to use and to build on. Our mission is to provide the tools, so that you can focus on what matters.

Integrate smol developer with agbenchmark (#48)

merwanehamadif183e91ccd10
diff --git a/.github/workflows/smol-developer.yml b/.github/workflows/smol-developer.yml
new file mode 100644
index 0000000000..13ee8cf8db
--- /dev/null
+++ b/.github/workflows/smol-developer.yml
@@ -0,0 +1,64 @@
+name: smol developer Regression Test
+
+on:
+ workflow_dispatch:
+ branches: [ master ]
+ push:
+ branches: [ stable, master, ci-test* ]
+
+jobs:
+ regression-tests:
+ permissions:
+ pull-requests: write
+ contents: write
+ runs-on: ubuntu-latest
+ timeout-minutes: 30
+ strategy:
+ matrix:
+ python-version: ["3.10"]
+
+ steps:
+ - name: Checkout repository
+ uses: actions/checkout@v3
+ with:
+ fetch-depth: 0
+ ref: ${{ github.event.pull_request.head.ref }}
+ repository: ${{ github.event.pull_request.head.repo.full_name }}
+ submodules: true
+
+ - name: Set up Python ${{ matrix.python-version }}
+ uses: actions/setup-python@v2
+ with:
+ python-version: ${{ matrix.python-version }}
+
+ - id: get_date
+ name: Get date
+ run: echo "date=$(date +'%Y-%m-%d')" >> $GITHUB_OUTPUT
+
+ - name: Install Poetry
+ run: |
+ curl -sSL https://install.python-poetry.org | python -
+
+ - name: Set up Poetry cache
+ uses: actions/cache@v2
+ with:
+ path: |
+ ~/.cache/pypoetry
+ .venv
+ key: ${{ runner.os }}-poetry-${{ hashFiles('**/pyproject.toml') }}-${{ hashFiles('**/poetry.lock') }}-${{ steps.get_date.outputs.date }}
+
+ - name: Set up venv and install Python dependencies
+ run: |
+ poetry install --only main
+ poetry build
+
+ - name: Run regression tests
+ run: |
+ cd agent/smol-developer
+ python -m venv venv
+ source venv/bin/activate
+ pip install -r requirements.txt
+ pip install ../../dist/agbenchmark-0.1.0-py3-none-any.whl
+ agbenchmark start --reg
+ env:
+ OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
diff --git a/.gitmodules b/.gitmodules
index b5b7ba2491..b45a16adad 100644
--- a/.gitmodules
+++ b/.gitmodules
@@ -6,3 +6,7 @@
path = agent/gpt-engineer
url = https://github.com/merwanehamadi/gpt-engineer.git
branch = benchmark-integration
+[submodule "agent/smol-developer"]
+ path = agent/smol-developer
+ url = https://github.com/merwanehamadi/developer.git
+ branch = benchmark-integration
diff --git a/agent/smol-developer b/agent/smol-developer
new file mode 160000
index 0000000000..896198af51
--- /dev/null
+++ b/agent/smol-developer
@@ -0,0 +1 @@
+Subproject commit 896198af51dd86dc3cfc2e258c3479948844e283