diff --git a/.github/workflows/classic-autogpt-ci.yml b/.github/workflows/classic-autogpt-ci.yml index be19992e346b..dd8788302cde 100644 --- a/.github/workflows/classic-autogpt-ci.yml +++ b/.github/workflows/classic-autogpt-ci.yml @@ -2,15 +2,15 @@ name: Classic - AutoGPT CI on: push: - branches: [ master, development, ci-test* ] + branches: [master, dev, ci-test*] paths: - - '.github/workflows/classic-autogpt-ci.yml' - - 'classic/original_autogpt/**' + - ".github/workflows/classic-autogpt-ci.yml" + - "classic/original_autogpt/**" pull_request: - branches: [ master, development, release-* ] + branches: [master, dev, release-*] paths: - - '.github/workflows/classic-autogpt-ci.yml' - - 'classic/original_autogpt/**' + - ".github/workflows/classic-autogpt-ci.yml" + - "classic/original_autogpt/**" concurrency: group: ${{ format('classic-autogpt-ci-{0}', github.head_ref && format('{0}-{1}', github.event_name, github.event.pull_request.number) || github.sha) }} @@ -41,7 +41,7 @@ jobs: - name: Start MinIO service (Linux) if: runner.os == 'Linux' - working-directory: '.' + working-directory: "." run: | docker pull minio/minio:edge-cicd docker run -d -p 9000:9000 minio/minio:edge-cicd diff --git a/.github/workflows/classic-autogpt-docker-cache-clean.yml b/.github/workflows/classic-autogpt-docker-cache-clean.yml index b499a5c7faca..f550a84ce387 100644 --- a/.github/workflows/classic-autogpt-docker-cache-clean.yml +++ b/.github/workflows/classic-autogpt-docker-cache-clean.yml @@ -5,7 +5,7 @@ on: - cron: 20 4 * * 1,4 env: - BASE_BRANCH: development + BASE_BRANCH: dev IMAGE_NAME: auto-gpt jobs: @@ -15,46 +15,46 @@ jobs: matrix: build-type: [release, dev] steps: - - name: Checkout repository - uses: actions/checkout@v4 - - - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v3 - - - id: build - name: Build image - uses: docker/build-push-action@v5 - with: - context: classic/ - file: classic/Dockerfile.autogpt - build-args: BUILD_TYPE=${{ matrix.build-type }} - load: true # save to docker images - # use GHA cache as read-only - cache-to: type=gha,scope=autogpt-docker-${{ matrix.build-type }},mode=max - - - name: Generate build report - env: - event_name: ${{ github.event_name }} - event_ref: ${{ github.event.schedule }} - - build_type: ${{ matrix.build-type }} - - prod_branch: master - dev_branch: development - repository: ${{ github.repository }} - base_branch: ${{ github.ref_name != 'master' && github.ref_name != 'development' && 'development' || 'master' }} - - current_ref: ${{ github.ref_name }} - commit_hash: ${{ github.sha }} - source_url: ${{ format('{0}/tree/{1}', github.event.repository.url, github.sha) }} - push_forced_label: - - new_commits_json: ${{ null }} - compare_url_template: ${{ format('/{0}/compare/{{base}}...{{head}}', github.repository) }} - - github_context_json: ${{ toJSON(github) }} - job_env_json: ${{ toJSON(env) }} - vars_json: ${{ toJSON(vars) }} - - run: .github/workflows/scripts/docker-ci-summary.sh >> $GITHUB_STEP_SUMMARY - continue-on-error: true + - name: Checkout repository + uses: actions/checkout@v4 + + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v3 + + - id: build + name: Build image + uses: docker/build-push-action@v5 + with: + context: classic/ + file: classic/Dockerfile.autogpt + build-args: BUILD_TYPE=${{ matrix.build-type }} + load: true # save to docker images + # use GHA cache as read-only + cache-to: type=gha,scope=autogpt-docker-${{ matrix.build-type }},mode=max + + - name: Generate build report + env: + event_name: ${{ github.event_name }} + event_ref: ${{ github.event.schedule }} + + build_type: ${{ matrix.build-type }} + + prod_branch: master + dev_branch: dev + repository: ${{ github.repository }} + base_branch: ${{ github.ref_name != 'master' && github.ref_name != 'dev' && 'dev' || 'master' }} + + current_ref: ${{ github.ref_name }} + commit_hash: ${{ github.sha }} + source_url: ${{ format('{0}/tree/{1}', github.event.repository.url, github.sha) }} + push_forced_label: + + new_commits_json: ${{ null }} + compare_url_template: ${{ format('/{0}/compare/{{base}}...{{head}}', github.repository) }} + + github_context_json: ${{ toJSON(github) }} + job_env_json: ${{ toJSON(env) }} + vars_json: ${{ toJSON(vars) }} + + run: .github/workflows/scripts/docker-ci-summary.sh >> $GITHUB_STEP_SUMMARY + continue-on-error: true diff --git a/.github/workflows/classic-autogpt-docker-ci.yml b/.github/workflows/classic-autogpt-docker-ci.yml index ae7279cf131d..780f82b64af6 100644 --- a/.github/workflows/classic-autogpt-docker-ci.yml +++ b/.github/workflows/classic-autogpt-docker-ci.yml @@ -2,17 +2,17 @@ name: Classic - AutoGPT Docker CI on: push: - branches: [ master, development ] + branches: [master, dev] paths: - - '.github/workflows/classic-autogpt-docker-ci.yml' - - 'classic/original_autogpt/**' - - 'classic/forge/**' + - ".github/workflows/classic-autogpt-docker-ci.yml" + - "classic/original_autogpt/**" + - "classic/forge/**" pull_request: - branches: [ master, development, release-* ] + branches: [master, dev, release-*] paths: - - '.github/workflows/classic-autogpt-docker-ci.yml' - - 'classic/original_autogpt/**' - - 'classic/forge/**' + - ".github/workflows/classic-autogpt-docker-ci.yml" + - "classic/original_autogpt/**" + - "classic/forge/**" concurrency: group: ${{ format('classic-autogpt-docker-ci-{0}', github.head_ref && format('pr-{0}', github.event.pull_request.number) || github.sha) }} @@ -34,58 +34,58 @@ jobs: matrix: build-type: [release, dev] steps: - - name: Checkout repository - uses: actions/checkout@v4 - - - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v3 - - - if: runner.debug - run: | - ls -al - du -hs * - - - id: build - name: Build image - uses: docker/build-push-action@v5 - with: - context: classic/ - file: classic/Dockerfile.autogpt - build-args: BUILD_TYPE=${{ matrix.build-type }} - tags: ${{ env.IMAGE_NAME }} - labels: GIT_REVISION=${{ github.sha }} - load: true # save to docker images - # cache layers in GitHub Actions cache to speed up builds - cache-from: type=gha,scope=autogpt-docker-${{ matrix.build-type }} - cache-to: type=gha,scope=autogpt-docker-${{ matrix.build-type }},mode=max - - - name: Generate build report - env: - event_name: ${{ github.event_name }} - event_ref: ${{ github.event.ref }} - event_ref_type: ${{ github.event.ref}} - - build_type: ${{ matrix.build-type }} - - prod_branch: master - dev_branch: development - repository: ${{ github.repository }} - base_branch: ${{ github.ref_name != 'master' && github.ref_name != 'development' && 'development' || 'master' }} - - current_ref: ${{ github.ref_name }} - commit_hash: ${{ github.event.after }} - source_url: ${{ format('{0}/tree/{1}', github.event.repository.url, github.event.release && github.event.release.tag_name || github.sha) }} - push_forced_label: ${{ github.event.forced && '☢️ forced' || '' }} - - new_commits_json: ${{ toJSON(github.event.commits) }} - compare_url_template: ${{ format('/{0}/compare/{{base}}...{{head}}', github.repository) }} - - github_context_json: ${{ toJSON(github) }} - job_env_json: ${{ toJSON(env) }} - vars_json: ${{ toJSON(vars) }} - - run: .github/workflows/scripts/docker-ci-summary.sh >> $GITHUB_STEP_SUMMARY - continue-on-error: true + - name: Checkout repository + uses: actions/checkout@v4 + + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v3 + + - if: runner.debug + run: | + ls -al + du -hs * + + - id: build + name: Build image + uses: docker/build-push-action@v5 + with: + context: classic/ + file: classic/Dockerfile.autogpt + build-args: BUILD_TYPE=${{ matrix.build-type }} + tags: ${{ env.IMAGE_NAME }} + labels: GIT_REVISION=${{ github.sha }} + load: true # save to docker images + # cache layers in GitHub Actions cache to speed up builds + cache-from: type=gha,scope=autogpt-docker-${{ matrix.build-type }} + cache-to: type=gha,scope=autogpt-docker-${{ matrix.build-type }},mode=max + + - name: Generate build report + env: + event_name: ${{ github.event_name }} + event_ref: ${{ github.event.ref }} + event_ref_type: ${{ github.event.ref}} + + build_type: ${{ matrix.build-type }} + + prod_branch: master + dev_branch: dev + repository: ${{ github.repository }} + base_branch: ${{ github.ref_name != 'master' && github.ref_name != 'dev' && 'dev' || 'master' }} + + current_ref: ${{ github.ref_name }} + commit_hash: ${{ github.event.after }} + source_url: ${{ format('{0}/tree/{1}', github.event.repository.url, github.event.release && github.event.release.tag_name || github.sha) }} + push_forced_label: ${{ github.event.forced && '☢️ forced' || '' }} + + new_commits_json: ${{ toJSON(github.event.commits) }} + compare_url_template: ${{ format('/{0}/compare/{{base}}...{{head}}', github.repository) }} + + github_context_json: ${{ toJSON(github) }} + job_env_json: ${{ toJSON(env) }} + vars_json: ${{ toJSON(vars) }} + + run: .github/workflows/scripts/docker-ci-summary.sh >> $GITHUB_STEP_SUMMARY + continue-on-error: true test: runs-on: ubuntu-latest @@ -121,12 +121,12 @@ jobs: with: context: classic/ file: classic/Dockerfile.autogpt - build-args: BUILD_TYPE=dev # include pytest + build-args: BUILD_TYPE=dev # include pytest tags: > ${{ env.IMAGE_NAME }}, ${{ env.DEPLOY_IMAGE_NAME }}:${{ env.DEV_IMAGE_TAG }} labels: GIT_REVISION=${{ github.sha }} - load: true # save to docker images + load: true # save to docker images # cache layers in GitHub Actions cache to speed up builds cache-from: type=gha,scope=autogpt-docker-dev cache-to: type=gha,scope=autogpt-docker-dev,mode=max diff --git a/.github/workflows/classic-autogpt-docker-release.yml b/.github/workflows/classic-autogpt-docker-release.yml index 5630541b2533..6fac23d30a66 100644 --- a/.github/workflows/classic-autogpt-docker-release.yml +++ b/.github/workflows/classic-autogpt-docker-release.yml @@ -2,13 +2,13 @@ name: Classic - AutoGPT Docker Release on: release: - types: [ published, edited ] + types: [published, edited] workflow_dispatch: inputs: no_cache: type: boolean - description: 'Build from scratch, without using cached layers' + description: "Build from scratch, without using cached layers" env: IMAGE_NAME: auto-gpt @@ -19,69 +19,68 @@ jobs: if: startsWith(github.ref, 'refs/tags/autogpt-') runs-on: ubuntu-latest steps: - - name: Checkout repository - uses: actions/checkout@v4 + - name: Checkout repository + uses: actions/checkout@v4 - - name: Log in to Docker hub - uses: docker/login-action@v3 - with: - username: ${{ secrets.DOCKER_USER }} - password: ${{ secrets.DOCKER_PASSWORD }} + - name: Log in to Docker hub + uses: docker/login-action@v3 + with: + username: ${{ secrets.DOCKER_USER }} + password: ${{ secrets.DOCKER_PASSWORD }} - - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v3 + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v3 - # slashes are not allowed in image tags, but can appear in git branch or tag names - - id: sanitize_tag - name: Sanitize image tag - run: | - tag=${raw_tag//\//-} - echo tag=${tag#autogpt-} >> $GITHUB_OUTPUT - env: - raw_tag: ${{ github.ref_name }} + # slashes are not allowed in image tags, but can appear in git branch or tag names + - id: sanitize_tag + name: Sanitize image tag + run: | + tag=${raw_tag//\//-} + echo tag=${tag#autogpt-} >> $GITHUB_OUTPUT + env: + raw_tag: ${{ github.ref_name }} - - id: build - name: Build image - uses: docker/build-push-action@v5 - with: - context: classic/ - file: Dockerfile.autogpt - build-args: BUILD_TYPE=release - load: true # save to docker images - # push: true # TODO: uncomment when this issue is fixed: https://github.com/moby/buildkit/issues/1555 - tags: > - ${{ env.IMAGE_NAME }}, - ${{ env.DEPLOY_IMAGE_NAME }}:latest, - ${{ env.DEPLOY_IMAGE_NAME }}:${{ steps.sanitize_tag.outputs.tag }} - labels: GIT_REVISION=${{ github.sha }} + - id: build + name: Build image + uses: docker/build-push-action@v5 + with: + context: classic/ + file: Dockerfile.autogpt + build-args: BUILD_TYPE=release + load: true # save to docker images + # push: true # TODO: uncomment when this issue is fixed: https://github.com/moby/buildkit/issues/1555 + tags: > + ${{ env.IMAGE_NAME }}, + ${{ env.DEPLOY_IMAGE_NAME }}:latest, + ${{ env.DEPLOY_IMAGE_NAME }}:${{ steps.sanitize_tag.outputs.tag }} + labels: GIT_REVISION=${{ github.sha }} + # cache layers in GitHub Actions cache to speed up builds + cache-from: ${{ !inputs.no_cache && 'type=gha' || '' }},scope=autogpt-docker-release + cache-to: type=gha,scope=autogpt-docker-release,mode=max - # cache layers in GitHub Actions cache to speed up builds - cache-from: ${{ !inputs.no_cache && 'type=gha' || '' }},scope=autogpt-docker-release - cache-to: type=gha,scope=autogpt-docker-release,mode=max + - name: Push image to Docker Hub + run: docker push --all-tags ${{ env.DEPLOY_IMAGE_NAME }} - - name: Push image to Docker Hub - run: docker push --all-tags ${{ env.DEPLOY_IMAGE_NAME }} + - name: Generate build report + env: + event_name: ${{ github.event_name }} + event_ref: ${{ github.event.ref }} + event_ref_type: ${{ github.event.ref}} + inputs_no_cache: ${{ inputs.no_cache }} - - name: Generate build report - env: - event_name: ${{ github.event_name }} - event_ref: ${{ github.event.ref }} - event_ref_type: ${{ github.event.ref}} - inputs_no_cache: ${{ inputs.no_cache }} + prod_branch: master + dev_branch: dev + repository: ${{ github.repository }} + base_branch: ${{ github.ref_name != 'master' && github.ref_name != 'dev' && 'dev' || 'master' }} - prod_branch: master - dev_branch: development - repository: ${{ github.repository }} - base_branch: ${{ github.ref_name != 'master' && github.ref_name != 'development' && 'development' || 'master' }} + ref_type: ${{ github.ref_type }} + current_ref: ${{ github.ref_name }} + commit_hash: ${{ github.sha }} + source_url: ${{ format('{0}/tree/{1}', github.event.repository.url, github.event.release && github.event.release.tag_name || github.sha) }} - ref_type: ${{ github.ref_type }} - current_ref: ${{ github.ref_name }} - commit_hash: ${{ github.sha }} - source_url: ${{ format('{0}/tree/{1}', github.event.repository.url, github.event.release && github.event.release.tag_name || github.sha) }} + github_context_json: ${{ toJSON(github) }} + job_env_json: ${{ toJSON(env) }} + vars_json: ${{ toJSON(vars) }} - github_context_json: ${{ toJSON(github) }} - job_env_json: ${{ toJSON(env) }} - vars_json: ${{ toJSON(vars) }} - - run: .github/workflows/scripts/docker-release-summary.sh >> $GITHUB_STEP_SUMMARY - continue-on-error: true + run: .github/workflows/scripts/docker-release-summary.sh >> $GITHUB_STEP_SUMMARY + continue-on-error: true diff --git a/.github/workflows/classic-autogpts-ci.yml b/.github/workflows/classic-autogpts-ci.yml index 4aff154e768c..7f8e11308609 100644 --- a/.github/workflows/classic-autogpts-ci.yml +++ b/.github/workflows/classic-autogpts-ci.yml @@ -3,29 +3,29 @@ name: Classic - Agent smoke tests on: workflow_dispatch: schedule: - - cron: '0 8 * * *' + - cron: "0 8 * * *" push: - branches: [ master, development, ci-test* ] + branches: [master, dev, ci-test*] paths: - - '.github/workflows/classic-autogpts-ci.yml' - - 'classic/original_autogpt/**' - - 'classic/forge/**' - - 'classic/benchmark/**' - - 'classic/run' - - 'classic/cli.py' - - 'classic/setup.py' - - '!**/*.md' + - ".github/workflows/classic-autogpts-ci.yml" + - "classic/original_autogpt/**" + - "classic/forge/**" + - "classic/benchmark/**" + - "classic/run" + - "classic/cli.py" + - "classic/setup.py" + - "!**/*.md" pull_request: - branches: [ master, development, release-* ] + branches: [master, dev, release-*] paths: - - '.github/workflows/classic-autogpts-ci.yml' - - 'classic/original_autogpt/**' - - 'classic/forge/**' - - 'classic/benchmark/**' - - 'classic/run' - - 'classic/cli.py' - - 'classic/setup.py' - - '!**/*.md' + - ".github/workflows/classic-autogpts-ci.yml" + - "classic/original_autogpt/**" + - "classic/forge/**" + - "classic/benchmark/**" + - "classic/run" + - "classic/cli.py" + - "classic/setup.py" + - "!**/*.md" defaults: run: @@ -37,11 +37,11 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - agent-name: [ original_autogpt ] + agent-name: [original_autogpt] fail-fast: false timeout-minutes: 20 env: - min-python-version: '3.10' + min-python-version: "3.10" steps: - name: Checkout repository uses: actions/checkout@v4 diff --git a/.github/workflows/classic-benchmark-ci.yml b/.github/workflows/classic-benchmark-ci.yml index d6914083ef9c..96e2e2724185 100644 --- a/.github/workflows/classic-benchmark-ci.yml +++ b/.github/workflows/classic-benchmark-ci.yml @@ -2,16 +2,16 @@ name: Classic - AGBenchmark CI on: push: - branches: [ master, development, ci-test* ] + branches: [master, dev, ci-test*] paths: - - 'classic/benchmark/**' - - '!classic/benchmark/reports/**' + - "classic/benchmark/**" + - "!classic/benchmark/reports/**" - .github/workflows/classic-benchmark-ci.yml pull_request: - branches: [ master, development, release-* ] + branches: [master, dev, release-*] paths: - - 'classic/benchmark/**' - - '!classic/benchmark/reports/**' + - "classic/benchmark/**" + - "!classic/benchmark/reports/**" - .github/workflows/classic-benchmark-ci.yml concurrency: @@ -23,7 +23,7 @@ defaults: shell: bash env: - min-python-version: '3.10' + min-python-version: "3.10" jobs: test: @@ -102,7 +102,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - agent-name: [ forge ] + agent-name: [forge] fail-fast: false timeout-minutes: 20 steps: diff --git a/.github/workflows/classic-forge-ci.yml b/.github/workflows/classic-forge-ci.yml index 6b81214e78fd..a66fbce6bb9a 100644 --- a/.github/workflows/classic-forge-ci.yml +++ b/.github/workflows/classic-forge-ci.yml @@ -2,17 +2,17 @@ name: Classic - Forge CI on: push: - branches: [ master, development, ci-test* ] + branches: [master, dev, ci-test*] paths: - - '.github/workflows/classic-forge-ci.yml' - - 'classic/forge/**' - - '!classic/forge/tests/vcr_cassettes' + - ".github/workflows/classic-forge-ci.yml" + - "classic/forge/**" + - "!classic/forge/tests/vcr_cassettes" pull_request: - branches: [ master, development, release-* ] + branches: [master, dev, release-*] paths: - - '.github/workflows/classic-forge-ci.yml' - - 'classic/forge/**' - - '!classic/forge/tests/vcr_cassettes' + - ".github/workflows/classic-forge-ci.yml" + - "classic/forge/**" + - "!classic/forge/tests/vcr_cassettes" concurrency: group: ${{ format('forge-ci-{0}', github.head_ref && format('{0}-{1}', github.event_name, github.event.pull_request.number) || github.sha) }} @@ -43,7 +43,7 @@ jobs: - name: Start MinIO service (Linux) if: runner.os == 'Linux' - working-directory: '.' + working-directory: "." run: | docker pull minio/minio:edge-cicd docker run -d -p 9000:9000 minio/minio:edge-cicd diff --git a/.github/workflows/classic-frontend-ci.yml b/.github/workflows/classic-frontend-ci.yml index f84259a262cb..114596608254 100644 --- a/.github/workflows/classic-frontend-ci.yml +++ b/.github/workflows/classic-frontend-ci.yml @@ -4,15 +4,15 @@ on: push: branches: - master - - development - - 'ci-test*' # This will match any branch that starts with "ci-test" + - dev + - "ci-test*" # This will match any branch that starts with "ci-test" paths: - - 'classic/frontend/**' - - '.github/workflows/classic-frontend-ci.yml' + - "classic/frontend/**" + - ".github/workflows/classic-frontend-ci.yml" pull_request: paths: - - 'classic/frontend/**' - - '.github/workflows/classic-frontend-ci.yml' + - "classic/frontend/**" + - ".github/workflows/classic-frontend-ci.yml" jobs: build: @@ -24,37 +24,37 @@ jobs: BUILD_BRANCH: ${{ format('classic-frontend-build/{0}', github.ref_name) }} steps: - - name: Checkout Repo - uses: actions/checkout@v4 + - name: Checkout Repo + uses: actions/checkout@v4 - - name: Setup Flutter - uses: subosito/flutter-action@v2 - with: - flutter-version: '3.13.2' + - 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: 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: 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@v6 - 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 }}" + - name: Create PR ${{ env.BUILD_BRANCH }} -> ${{ github.ref_name }} + if: github.event_name == 'push' + uses: peter-evans/create-pull-request@v6 + 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/.github/workflows/classic-python-checks.yml b/.github/workflows/classic-python-checks.yml index b6519348d311..77a21ca5e98d 100644 --- a/.github/workflows/classic-python-checks.yml +++ b/.github/workflows/classic-python-checks.yml @@ -2,23 +2,23 @@ name: Classic - Python checks on: push: - branches: [ master, development, ci-test* ] + branches: [master, dev, ci-test*] paths: - - '.github/workflows/classic-python-checks-ci.yml' - - 'classic/original_autogpt/**' - - 'classic/forge/**' - - 'classic/benchmark/**' - - '**.py' - - '!classic/forge/tests/vcr_cassettes' + - ".github/workflows/classic-python-checks-ci.yml" + - "classic/original_autogpt/**" + - "classic/forge/**" + - "classic/benchmark/**" + - "**.py" + - "!classic/forge/tests/vcr_cassettes" pull_request: - branches: [ master, development, release-* ] + branches: [master, dev, release-*] paths: - - '.github/workflows/classic-python-checks-ci.yml' - - 'classic/original_autogpt/**' - - 'classic/forge/**' - - 'classic/benchmark/**' - - '**.py' - - '!classic/forge/tests/vcr_cassettes' + - ".github/workflows/classic-python-checks-ci.yml" + - "classic/original_autogpt/**" + - "classic/forge/**" + - "classic/benchmark/**" + - "**.py" + - "!classic/forge/tests/vcr_cassettes" concurrency: group: ${{ format('classic-python-checks-ci-{0}', github.head_ref && format('{0}-{1}', github.event_name, github.event.pull_request.number) || github.sha) }} diff --git a/.github/workflows/platform-backend-ci.yml b/.github/workflows/platform-backend-ci.yml index 28a9f635fda7..66b83a0916e0 100644 --- a/.github/workflows/platform-backend-ci.yml +++ b/.github/workflows/platform-backend-ci.yml @@ -2,12 +2,12 @@ name: AutoGPT Platform - Backend CI on: push: - branches: [master, development, ci-test*] + branches: [master, dev, ci-test*] paths: - ".github/workflows/platform-backend-ci.yml" - "autogpt_platform/backend/**" pull_request: - branches: [master, development, release-*] + branches: [master, dev, release-*] paths: - ".github/workflows/platform-backend-ci.yml" - "autogpt_platform/backend/**" @@ -115,9 +115,9 @@ jobs: SUPABASE_URL: ${{ steps.supabase.outputs.API_URL }} SUPABASE_SERVICE_ROLE_KEY: ${{ steps.supabase.outputs.SERVICE_ROLE_KEY }} SUPABASE_JWT_SECRET: ${{ steps.supabase.outputs.JWT_SECRET }} - REDIS_HOST: 'localhost' - REDIS_PORT: '6379' - REDIS_PASSWORD: 'testpassword' + REDIS_HOST: "localhost" + REDIS_PORT: "6379" + REDIS_PASSWORD: "testpassword" env: CI: true diff --git a/.github/workflows/repo-pr-label.yml b/.github/workflows/repo-pr-label.yml index cbd34d639da6..1b5035cf62ef 100644 --- a/.github/workflows/repo-pr-label.yml +++ b/.github/workflows/repo-pr-label.yml @@ -3,15 +3,15 @@ name: Repo - Pull Request auto-label on: # So that PRs touching the same files as the push are updated push: - branches: [ master, development, release-* ] + branches: [master, dev, release-*] paths-ignore: - - 'classic/forge/tests/vcr_cassettes' - - 'classic/benchmark/reports/**' + - "classic/forge/tests/vcr_cassettes" + - "classic/benchmark/reports/**" # So that the `dirtyLabel` is removed if conflicts are resolve # We recommend `pull_request_target` so that github secrets are available. # In `pull_request` we wouldn't be able to change labels of fork PRs pull_request_target: - types: [ opened, synchronize ] + types: [opened, synchronize] concurrency: group: ${{ format('pr-label-{0}', github.event.pull_request.number || github.sha) }} @@ -43,15 +43,15 @@ jobs: - uses: codelytv/pr-size-labeler@v1 with: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - xs_label: 'size/xs' + xs_label: "size/xs" xs_max_size: 2 - s_label: 'size/s' + s_label: "size/s" s_max_size: 10 - m_label: 'size/m' + m_label: "size/m" m_max_size: 100 - l_label: 'size/l' + l_label: "size/l" l_max_size: 500 - xl_label: 'size/xl' + xl_label: "size/xl" message_if_xl: scope: