2023-09-14 16:11:45 +00:00
|
|
|
name: Valid AutoGPTs
|
2023-09-14 15:29:04 +00:00
|
|
|
|
|
|
|
on:
|
|
|
|
workflow_dispatch:
|
|
|
|
branches: [master]
|
|
|
|
schedule:
|
|
|
|
- cron: '0 8 * * *'
|
|
|
|
push:
|
|
|
|
branches: [master, ci-test*]
|
|
|
|
pull_request:
|
|
|
|
branches: [stable, master, release-*]
|
|
|
|
|
|
|
|
jobs:
|
2023-09-14 16:11:45 +00:00
|
|
|
run-tests:
|
2023-09-14 15:29:04 +00:00
|
|
|
runs-on: ubuntu-latest
|
2023-09-14 16:11:45 +00:00
|
|
|
strategy:
|
|
|
|
matrix:
|
2023-09-15 16:31:00 +00:00
|
|
|
agent-name: [ forge ]
|
2023-09-14 16:11:45 +00:00
|
|
|
fail-fast: false
|
2023-09-14 15:29:04 +00:00
|
|
|
timeout-minutes: 20
|
|
|
|
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 ${{ env.min-python-version }}
|
|
|
|
uses: actions/setup-python@v2
|
|
|
|
with:
|
|
|
|
python-version: ${{ env.min-python-version }}
|
|
|
|
|
|
|
|
- name: Install Poetry
|
2023-09-14 16:11:45 +00:00
|
|
|
working-directory: ./autogpts/${{ matrix.agent-name }}/
|
2023-09-14 15:29:04 +00:00
|
|
|
run: |
|
|
|
|
curl -sSL https://install.python-poetry.org | python -
|
|
|
|
|
|
|
|
- name: Run regression tests
|
2023-09-14 16:11:45 +00:00
|
|
|
working-directory: ./autogpts/${{ matrix.agent-name }}/
|
2023-09-14 15:29:04 +00:00
|
|
|
run: |
|
2023-09-14 16:11:45 +00:00
|
|
|
sh run
|
2023-09-14 15:29:04 +00:00
|
|
|
URL=http://127.0.0.1:8000 bash -c "$(curl -fsSL https://raw.githubusercontent.com/AI-Engineers-Foundation/agent-protocol/main/testing_suite/test.sh)"
|
2023-09-17 00:22:49 +00:00
|
|
|
poetry run agbenchmark --mock
|
|
|
|
poetry run agbenchmark --test=TestWriteFile
|
2023-09-14 15:29:04 +00:00
|
|
|
env:
|
|
|
|
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
|
|
|
|
AGENT_NAME: ${{ matrix.agent-name }}
|
|
|
|
HELICONE_API_KEY: ${{ secrets.HELICONE_API_KEY }}
|
|
|
|
REQUESTS_CA_BUNDLE: /etc/ssl/certs/ca-certificates.crt
|
|
|
|
HELICONE_CACHE_ENABLED: false
|
|
|
|
HELICONE_PROPERTY_AGENT: ${{ matrix.agent-name }}
|
|
|
|
REPORT_LOCATION: ${{ format('../../reports/{0}', matrix.agent-name) }}
|