From e6f7bcf0ae6d115a8f0a7c35036792ac212ba9f9 Mon Sep 17 00:00:00 2001 From: Silen Naihin Date: Thu, 6 Jul 2023 00:06:34 -0400 Subject: [PATCH] fixing --reg to --maintain workflow bug --- .github/workflows/autogpt.yml | 9 ++-- .github/workflows/gpt-engineer.yml | 8 ++-- .github/workflows/mini-agi.yml | 2 +- .github/workflows/smol-developer.yml | 8 ++-- .github/workflows/superagi.yml | 64 ++++++++++++++++++++++++++++ agent/SuperAGI | 1 + 6 files changed, 78 insertions(+), 14 deletions(-) create mode 100644 .github/workflows/superagi.yml create mode 160000 agent/SuperAGI diff --git a/.github/workflows/autogpt.yml b/.github/workflows/autogpt.yml index 4316f36f..2d7e2dfb 100644 --- a/.github/workflows/autogpt.yml +++ b/.github/workflows/autogpt.yml @@ -2,9 +2,9 @@ name: Auto-GPT Regression Test on: workflow_dispatch: - branches: [ master ] + branches: [master] push: - branches: [ stable, master, ci-test* ] + branches: [stable, master, ci-test*] jobs: regression-tests: @@ -15,7 +15,7 @@ jobs: timeout-minutes: 30 strategy: matrix: - python-version: ["3.10"] + python-version: ['3.10'] steps: - name: Checkout repository @@ -51,7 +51,6 @@ jobs: run: | poetry install --only main poetry build - - name: Run regression tests run: | @@ -60,6 +59,6 @@ jobs: cd agent/Auto-GPT pip install -r requirements.txt pip install ../../dist/agbenchmark-0.1.0-py3-none-any.whl - agbenchmark start --reg + agbenchmark start --maintain env: OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }} diff --git a/.github/workflows/gpt-engineer.yml b/.github/workflows/gpt-engineer.yml index e0dbac2f..a3916548 100644 --- a/.github/workflows/gpt-engineer.yml +++ b/.github/workflows/gpt-engineer.yml @@ -2,9 +2,9 @@ name: gpt-engineer Regression Test on: workflow_dispatch: - branches: [ master ] + branches: [master] push: - branches: [ stable, master, ci-test* ] + branches: [stable, master, ci-test*] jobs: regression-tests: @@ -15,7 +15,7 @@ jobs: timeout-minutes: 30 strategy: matrix: - python-version: ["3.10"] + python-version: ['3.10'] steps: - name: Checkout repository @@ -58,7 +58,7 @@ jobs: make install source venv/bin/activate pip install ../../dist/agbenchmark-0.1.0-py3-none-any.whl - agbenchmark start --reg + agbenchmark start --maintain env: OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }} diff --git a/.github/workflows/mini-agi.yml b/.github/workflows/mini-agi.yml index 055df304..53c479df 100644 --- a/.github/workflows/mini-agi.yml +++ b/.github/workflows/mini-agi.yml @@ -60,7 +60,7 @@ jobs: pip install -r requirements.txt cp .env_example .env pip install ../../dist/agbenchmark-0.1.0-py3-none-any.whl - agbenchmark start --reg + agbenchmark start --maintain env: OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }} PROMPT_USER: false diff --git a/.github/workflows/smol-developer.yml b/.github/workflows/smol-developer.yml index 13ee8cf8..6926df54 100644 --- a/.github/workflows/smol-developer.yml +++ b/.github/workflows/smol-developer.yml @@ -2,9 +2,9 @@ name: smol developer Regression Test on: workflow_dispatch: - branches: [ master ] + branches: [master] push: - branches: [ stable, master, ci-test* ] + branches: [stable, master, ci-test*] jobs: regression-tests: @@ -15,7 +15,7 @@ jobs: timeout-minutes: 30 strategy: matrix: - python-version: ["3.10"] + python-version: ['3.10'] steps: - name: Checkout repository @@ -59,6 +59,6 @@ jobs: source venv/bin/activate pip install -r requirements.txt pip install ../../dist/agbenchmark-0.1.0-py3-none-any.whl - agbenchmark start --reg + agbenchmark start --maintain env: OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }} diff --git a/.github/workflows/superagi.yml b/.github/workflows/superagi.yml new file mode 100644 index 00000000..88176cdc --- /dev/null +++ b/.github/workflows/superagi.yml @@ -0,0 +1,64 @@ +name: SuperAgi 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/SuperAgi + cp config_template.yaml config.yaml + sed -i 's/OPENAI_API_KEY:.*/OPENAI_API_KEY: "'"${{ secrets.OPENAI_API_KEY }}"'"/' config.yaml + 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 --maintain diff --git a/agent/SuperAGI b/agent/SuperAGI new file mode 160000 index 00000000..16684379 --- /dev/null +++ b/agent/SuperAGI @@ -0,0 +1 @@ +Subproject commit 16684379930c770d3eb0ea00bd9f8d2630a1aa99