Set up CI for development branch; deprecate stable branch

This commit is contained in:
Reinier van der Leer
2023-10-21 15:46:53 -07:00
parent eda21d5192
commit 16e266c65f
12 changed files with 31 additions and 31 deletions

View File

@@ -2,17 +2,17 @@ name: AutoGPT Python CI
on: on:
push: push:
branches: [ master, ci-test* ] branches: [ master, development, ci-test* ]
paths: paths:
- 'autogpts/autogpt/**' - 'autogpts/autogpt/**'
- '!autogpts/autogpt/tests/vcr_cassettes' - '!autogpts/autogpt/tests/vcr_cassettes'
pull_request: pull_request:
branches: [ stable, master, release-* ] branches: [ master, development, release-* ]
paths: paths:
- 'autogpts/autogpt/**' - 'autogpts/autogpt/**'
- '!autogpts/autogpt/tests/vcr_cassettes' - '!autogpts/autogpt/tests/vcr_cassettes'
pull_request_target: pull_request_target:
branches: [ master, release-*, ci-test* ] branches: [ master, development, release-*, ci-test* ]
paths: paths:
- 'autogpts/autogpt/**' - 'autogpts/autogpt/**'
- '!autogpts/autogpt/tests/vcr_cassettes' - '!autogpts/autogpt/tests/vcr_cassettes'

View File

@@ -5,7 +5,7 @@ on:
- cron: 20 4 * * 1,4 - cron: 20 4 * * 1,4
env: env:
BASE_BRANCH: master BASE_BRANCH: development
IMAGE_NAME: auto-gpt IMAGE_NAME: auto-gpt
jobs: jobs:
@@ -38,10 +38,10 @@ jobs:
build_type: ${{ matrix.build-type }} build_type: ${{ matrix.build-type }}
prod_branch: stable prod_branch: master
dev_branch: master dev_branch: development
repository: ${{ github.repository }} repository: ${{ github.repository }}
base_branch: ${{ github.ref_name != 'master' && github.ref_name != 'stable' && 'master' || 'stable' }} base_branch: ${{ github.ref_name != 'master' && github.ref_name != 'development' && 'development' || 'master' }}
current_ref: ${{ github.ref_name }} current_ref: ${{ github.ref_name }}
commit_hash: ${{ github.sha }} commit_hash: ${{ github.sha }}

View File

@@ -2,12 +2,12 @@ name: AutoGPT Docker CI
on: on:
push: push:
branches: [ master ] branches: [ master, development ]
paths: paths:
- 'autogpts/autogpt/**' - 'autogpts/autogpt/**'
- '!autogpts/autogpt/tests/vcr_cassettes' - '!autogpts/autogpt/tests/vcr_cassettes'
pull_request: pull_request:
branches: [ master, release-*, stable ] branches: [ master, development, release-* ]
paths: paths:
- 'autogpts/autogpt/**' - 'autogpts/autogpt/**'
- '!autogpts/autogpt/tests/vcr_cassettes' - '!autogpts/autogpt/tests/vcr_cassettes'
@@ -61,10 +61,10 @@ jobs:
build_type: ${{ matrix.build-type }} build_type: ${{ matrix.build-type }}
prod_branch: stable prod_branch: master
dev_branch: master dev_branch: development
repository: ${{ github.repository }} repository: ${{ github.repository }}
base_branch: ${{ github.ref_name != 'master' && github.ref_name != 'stable' && 'master' || 'stable' }} base_branch: ${{ github.ref_name != 'master' && github.ref_name != 'development' && 'development' || 'master' }}
current_ref: ${{ github.ref_name }} current_ref: ${{ github.ref_name }}
commit_hash: ${{ github.event.after }} commit_hash: ${{ github.event.after }}

View File

@@ -68,10 +68,10 @@ jobs:
event_ref_type: ${{ github.event.ref}} event_ref_type: ${{ github.event.ref}}
inputs_no_cache: ${{ inputs.no_cache }} inputs_no_cache: ${{ inputs.no_cache }}
prod_branch: stable prod_branch: master
dev_branch: master dev_branch: development
repository: ${{ github.repository }} repository: ${{ github.repository }}
base_branch: ${{ github.ref_name != 'master' && github.ref_name != 'stable' && 'master' || 'stable' }} base_branch: ${{ github.ref_name != 'master' && github.ref_name != 'development' && 'development' || 'master' }}
ref_type: ${{ github.ref_type }} ref_type: ${{ github.ref_type }}
current_ref: ${{ github.ref_name }} current_ref: ${{ github.ref_name }}

View File

@@ -2,13 +2,12 @@ name: Valid AutoGPTs
on: on:
workflow_dispatch: workflow_dispatch:
branches: [master]
schedule: schedule:
- cron: '0 8 * * *' - cron: '0 8 * * *'
push: push:
branches: [master, ci-test*] branches: [ master, development, ci-test* ]
pull_request: pull_request:
branches: [stable, master, release-*] branches: [ master, development, release-* ]
jobs: jobs:
run-tests: run-tests:

View File

@@ -2,13 +2,13 @@ name: Benchmark CI
on: on:
push: push:
branches: [master, ci-test*] branches: [ master, development, ci-test* ]
paths: paths:
- 'benchmark/**' - 'benchmark/**'
- .github/workflows/benchmark-ci.yml - .github/workflows/benchmark-ci.yml
- '!benchmark/reports/**' - '!benchmark/reports/**'
pull_request: pull_request:
branches: [stable, master, release-*] branches: [ master, development, release-* ]
paths: paths:
- 'benchmark/**' - 'benchmark/**'
- '!benchmark/reports/**' - '!benchmark/reports/**'

View File

@@ -4,6 +4,7 @@ on:
push: push:
branches: branches:
- master - master
- development
- 'ci-test*' # This will match any branch that starts with "ci-test" - 'ci-test*' # This will match any branch that starts with "ci-test"
paths: paths:
- 'frontend/**' - 'frontend/**'

View File

@@ -3,7 +3,7 @@ name: "Pull Request auto-label"
on: on:
# So that PRs touching the same files as the push are updated # So that PRs touching the same files as the push are updated
push: push:
branches: [ master, release-* ] branches: [ master, development, release-* ]
paths-ignore: paths-ignore:
- 'autogpts/autogpt/tests/vcr_cassettes' - 'autogpts/autogpt/tests/vcr_cassettes'
- 'benchmark/reports/**' - 'benchmark/reports/**'

View File

@@ -173,7 +173,7 @@ def print_motd(config: Config, logger: logging.Logger):
def print_git_branch_info(logger: logging.Logger): def print_git_branch_info(logger: logging.Logger):
git_branch = get_current_git_branch() git_branch = get_current_git_branch()
if git_branch and git_branch != "stable": if git_branch and git_branch != "master":
logger.warn( logger.warn(
f"You are running on `{git_branch}` branch" f"You are running on `{git_branch}` branch"
" - this is not a supported branch." " - this is not a supported branch."

View File

@@ -32,8 +32,8 @@ There are two client applications for AutoGPT included.
The first app is a straight CLI application. I have not done anything yet to port all the friendly display stuff from the ~~`logger.typewriter_log`~~`user_friendly_output` logic. The first app is a straight CLI application. I have not done anything yet to port all the friendly display stuff from the ~~`logger.typewriter_log`~~`user_friendly_output` logic.
- [Entry Point](https://github.com/Significant-Gravitas/AutoGPT/blob/master/autogpt/core/runner/cli_app/cli.py) - [Entry Point](https://github.com/Significant-Gravitas/AutoGPT/blob/master/autogpts/autogpt/autogpt/core/runner/cli_app/cli.py)
- [Client Application](https://github.com/Significant-Gravitas/AutoGPT/blob/master/autogpt/core/runner/cli_app/main.py) - [Client Application](https://github.com/Significant-Gravitas/AutoGPT/blob/master/autogpts/autogpt/autogpt/core/runner/cli_app/main.py)
You'll then need a settings file. Run You'll then need a settings file. Run
@@ -71,9 +71,9 @@ The second app is still a CLI, but it sets up a local webserver that the client
rather than invoking calls to the Agent library code directly. This application is essentially a sketch rather than invoking calls to the Agent library code directly. This application is essentially a sketch
at this point as the folks who were driving it have had less time (and likely not enough clarity) to proceed. at this point as the folks who were driving it have had less time (and likely not enough clarity) to proceed.
- [Entry Point](https://github.com/Significant-Gravitas/AutoGPT/blob/master/autogpt/core/runner/cli_web_app/cli.py) - [Entry Point](https://github.com/Significant-Gravitas/AutoGPT/blob/master/autogpts/autogpt/autogpt/core/runner/cli_web_app/cli.py)
- [Client Application](https://github.com/Significant-Gravitas/AutoGPT/blob/master/autogpt/core/runner/cli_web_app/client/client.py) - [Client Application](https://github.com/Significant-Gravitas/AutoGPT/blob/master/autogpts/autogpt/autogpt/core/runner/cli_web_app/client/client.py)
- [Server API](https://github.com/Significant-Gravitas/AutoGPT/blob/master/autogpt/core/runner/cli_web_app/server/api.py) - [Server API](https://github.com/Significant-Gravitas/AutoGPT/blob/master/autogpts/autogpt/autogpt/core/runner/cli_web_app/server/api.py)
To run, you still need to generate a default configuration. You can do To run, you still need to generate a default configuration. You can do

View File

@@ -27,7 +27,7 @@ Output => Artifact (files, image, code, etc, etc...)
## Defining your Agent ## Defining your Agent
Go to https://github.com/Significant-Gravitas/AutoGPT/blob/master/tests/integration/agent_factory.py Go to https://github.com/Significant-Gravitas/AutoGPT/blob/master/autogpts/autogpt/tests/integration/agent_factory.py
Create your agent fixture. Create your agent fixture.

View File

@@ -96,7 +96,7 @@ Get your OpenAI API key from: [https://platform.openai.com/account/api-keys](htt
1. Clone the repository 1. Clone the repository
```shell ```shell
git clone -b stable https://github.com/Significant-Gravitas/AutoGPT.git git clone https://github.com/Significant-Gravitas/AutoGPT.git
``` ```
2. Navigate to the directory where you downloaded the repository 2. Navigate to the directory where you downloaded the repository
@@ -110,7 +110,7 @@ Get your OpenAI API key from: [https://platform.openai.com/account/api-keys](htt
!!! warning !!! warning
We recommend to use Git or Docker, to make updating easier. Also note that some features such as Python execution will only work inside docker for security reasons. We recommend to use Git or Docker, to make updating easier. Also note that some features such as Python execution will only work inside docker for security reasons.
1. Download `Source code (zip)` from the [latest stable release](https://github.com/Significant-Gravitas/AutoGPT/releases/latest) 1. Download `Source code (zip)` from the [latest release](https://github.com/Significant-Gravitas/AutoGPT/releases/latest)
2. Extract the zip-file into a folder 2. Extract the zip-file into a folder
@@ -211,7 +211,7 @@ docker run -it --env-file=.env -v $PWD:/app auto-gpt
docker run -it --env-file=.env -v $PWD:/app --rm auto-gpt --gpt3only --continuous docker run -it --env-file=.env -v $PWD:/app --rm auto-gpt --gpt3only --continuous
``` ```
[Docker Compose file]: https://github.com/Significant-Gravitas/AutoGPT/blob/stable/docker-compose.yml [Docker Compose file]: https://github.com/Significant-Gravitas/AutoGPT/blob/master/autogpts/autogpt/docker-compose.yml
### Run with Dev Container ### Run with Dev Container