2023-11-21 09:58:54 +00:00
|
|
|
name: AutoGPTs smoke test CI
|
2023-09-14 15:29:04 +00:00
|
|
|
|
|
|
|
on:
|
|
|
|
workflow_dispatch:
|
|
|
|
schedule:
|
|
|
|
- cron: '0 8 * * *'
|
|
|
|
push:
|
2023-10-21 22:46:53 +00:00
|
|
|
branches: [ master, development, ci-test* ]
|
2023-11-21 09:58:54 +00:00
|
|
|
paths:
|
|
|
|
- '.github/workflows/autogpts-ci.yml'
|
2024-05-22 12:08:54 +00:00
|
|
|
- 'autogpt/**'
|
|
|
|
- 'forge/**'
|
2023-11-21 09:58:54 +00:00
|
|
|
- 'benchmark/**'
|
|
|
|
- 'run'
|
|
|
|
- 'cli.py'
|
|
|
|
- 'setup.py'
|
|
|
|
- '!**/*.md'
|
2023-09-14 15:29:04 +00:00
|
|
|
pull_request:
|
2023-10-21 22:46:53 +00:00
|
|
|
branches: [ master, development, release-* ]
|
2023-11-21 09:58:54 +00:00
|
|
|
paths:
|
|
|
|
- '.github/workflows/autogpts-ci.yml'
|
2024-05-22 12:08:54 +00:00
|
|
|
- 'autogpt/**'
|
|
|
|
- 'forge/**'
|
2023-11-21 09:58:54 +00:00
|
|
|
- 'benchmark/**'
|
|
|
|
- 'run'
|
|
|
|
- 'cli.py'
|
|
|
|
- 'setup.py'
|
|
|
|
- '!**/*.md'
|
2023-09-14 15:29:04 +00:00
|
|
|
|
|
|
|
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-10-17 18:08:17 +00:00
|
|
|
agent-name: [ autogpt, forge ]
|
2023-09-14 16:11:45 +00:00
|
|
|
fail-fast: false
|
2023-09-14 15:29:04 +00:00
|
|
|
timeout-minutes: 20
|
2023-11-21 09:58:54 +00:00
|
|
|
env:
|
|
|
|
min-python-version: '3.10'
|
2023-09-14 15:29:04 +00:00
|
|
|
steps:
|
|
|
|
- name: Checkout repository
|
2024-02-17 12:59:13 +00:00
|
|
|
uses: actions/checkout@v4
|
2023-09-14 15:29:04 +00:00
|
|
|
with:
|
|
|
|
fetch-depth: 0
|
|
|
|
submodules: true
|
|
|
|
|
|
|
|
- name: Set up Python ${{ env.min-python-version }}
|
2024-02-17 12:59:13 +00:00
|
|
|
uses: actions/setup-python@v5
|
2023-09-14 15:29:04 +00:00
|
|
|
with:
|
|
|
|
python-version: ${{ env.min-python-version }}
|
|
|
|
|
|
|
|
- name: Install Poetry
|
2024-05-22 12:08:54 +00:00
|
|
|
working-directory: ./${{ matrix.agent-name }}/
|
2023-09-14 15:29:04 +00:00
|
|
|
run: |
|
|
|
|
curl -sSL https://install.python-poetry.org | python -
|
|
|
|
|
|
|
|
- name: Run regression tests
|
|
|
|
run: |
|
2023-10-17 17:47:43 +00:00
|
|
|
./run agent start ${{ matrix.agent-name }}
|
2024-05-22 12:08:54 +00:00
|
|
|
cd ${{ matrix.agent-name }}
|
2024-02-14 01:30:03 +00:00
|
|
|
poetry run agbenchmark --mock --test=BasicRetrieval --test=Battleship --test=WebArenaTask_0
|
2023-09-17 13:55:20 +00:00
|
|
|
poetry run agbenchmark --test=WriteFile
|
2023-09-14 15:29:04 +00:00
|
|
|
env:
|
|
|
|
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
|
|
|
|
AGENT_NAME: ${{ matrix.agent-name }}
|
|
|
|
REQUESTS_CA_BUNDLE: /etc/ssl/certs/ca-certificates.crt
|
|
|
|
HELICONE_CACHE_ENABLED: false
|
|
|
|
HELICONE_PROPERTY_AGENT: ${{ matrix.agent-name }}
|
2024-02-15 17:07:45 +00:00
|
|
|
REPORTS_FOLDER: ${{ format('../../reports/{0}', matrix.agent-name) }}
|
2024-02-17 13:26:03 +00:00
|
|
|
TELEMETRY_ENVIRONMENT: autogpt-ci
|
2024-02-17 14:10:11 +00:00
|
|
|
TELEMETRY_OPT_IN: ${{ github.ref_name == 'master' }}
|