diff --git a/.github/workflows/classic-autogpts-ci.yml b/.github/workflows/classic-autogpts-ci.yml index 21bc945c00..f12b4c17d6 100644 --- a/.github/workflows/classic-autogpts-ci.yml +++ b/.github/workflows/classic-autogpts-ci.yml @@ -11,9 +11,6 @@ on: - 'classic/original_autogpt/**' - 'classic/forge/**' - 'classic/benchmark/**' - - 'classic/run' - - 'classic/cli.py' - - 'classic/setup.py' - '!**/*.md' pull_request: branches: [ master, dev, release-* ] @@ -22,9 +19,6 @@ on: - 'classic/original_autogpt/**' - 'classic/forge/**' - 'classic/benchmark/**' - - 'classic/run' - - 'classic/cli.py' - - 'classic/setup.py' - '!**/*.md' defaults: @@ -59,10 +53,15 @@ jobs: run: | curl -sSL https://install.python-poetry.org | python - + - name: Install dependencies + working-directory: ./classic/${{ matrix.agent-name }}/ + run: poetry install + - name: Run regression tests run: | - ./run agent start ${{ matrix.agent-name }} cd ${{ matrix.agent-name }} + poetry run serve & + sleep 10 # Wait for server to start poetry run agbenchmark --mock --test=BasicRetrieval --test=Battleship --test=WebArenaTask_0 poetry run agbenchmark --test=WriteFile env: diff --git a/.github/workflows/classic-benchmark-ci.yml b/.github/workflows/classic-benchmark-ci.yml index 0807620df9..c31e48471c 100644 --- a/.github/workflows/classic-benchmark-ci.yml +++ b/.github/workflows/classic-benchmark-ci.yml @@ -128,11 +128,16 @@ jobs: run: | curl -sSL https://install.python-poetry.org | python - + - name: Install agent dependencies + working-directory: classic/${{ matrix.agent-name }} + run: poetry install + - name: Run regression tests working-directory: classic run: | - ./run agent start ${{ matrix.agent-name }} cd ${{ matrix.agent-name }} + poetry run python -m forge & + sleep 10 # Wait for server to start set +e # Ignore non-zero exit codes and continue execution echo "Running the following command: poetry run agbenchmark --maintain --mock" diff --git a/.github/workflows/classic-frontend-ci.yml b/.github/workflows/classic-frontend-ci.yml deleted file mode 100644 index 13d518db57..0000000000 --- a/.github/workflows/classic-frontend-ci.yml +++ /dev/null @@ -1,60 +0,0 @@ -name: Classic - Frontend CI/CD - -on: - push: - branches: - - master - - dev - - 'ci-test*' # This will match any branch that starts with "ci-test" - paths: - - 'classic/frontend/**' - - '.github/workflows/classic-frontend-ci.yml' - pull_request: - paths: - - 'classic/frontend/**' - - '.github/workflows/classic-frontend-ci.yml' - -jobs: - build: - permissions: - contents: write - pull-requests: write - runs-on: ubuntu-latest - env: - BUILD_BRANCH: ${{ format('classic-frontend-build/{0}', github.ref_name) }} - - steps: - - name: Checkout Repo - uses: actions/checkout@v4 - - - name: Setup Flutter - uses: subosito/flutter-action@v2 - with: - flutter-version: '3.13.2' - - - name: Build Flutter to Web - run: | - cd classic/frontend - flutter build web --base-href /app/ - - # - name: Commit and Push to ${{ env.BUILD_BRANCH }} - # if: github.event_name == 'push' - # run: | - # git config --local user.email "action@github.com" - # git config --local user.name "GitHub Action" - # git add classic/frontend/build/web - # git checkout -B ${{ env.BUILD_BRANCH }} - # git commit -m "Update frontend build to ${GITHUB_SHA:0:7}" -a - # git push -f origin ${{ env.BUILD_BRANCH }} - - - name: Create PR ${{ env.BUILD_BRANCH }} -> ${{ github.ref_name }} - if: github.event_name == 'push' - uses: peter-evans/create-pull-request@v7 - with: - add-paths: classic/frontend/build/web - base: ${{ github.ref_name }} - branch: ${{ env.BUILD_BRANCH }} - delete-branch: true - title: "Update frontend build in `${{ github.ref_name }}`" - body: "This PR updates the frontend build based on commit ${{ github.sha }}." - commit-message: "Update frontend build based on commit ${{ github.sha }}" diff --git a/classic/Dockerfile.autogpt b/classic/Dockerfile.autogpt index a72e45937d..d627240108 100644 --- a/classic/Dockerfile.autogpt +++ b/classic/Dockerfile.autogpt @@ -34,9 +34,6 @@ COPY original_autogpt/pyproject.toml original_autogpt/poetry.lock ./ # Include forge so it can be used as a path dependency COPY forge/ ../forge -# Include frontend -COPY frontend/ ../frontend - # Set the entrypoint ENTRYPOINT ["poetry", "run", "autogpt"] CMD []