diff --git a/.github/dependabot.yml b/.github/dependabot.yml index cc89f631c..9d2233c44 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -13,7 +13,7 @@ updates: ignore: - dependency-name: "*" update-types: ["version-update:semver-patch"] - open-pull-requests-limit: 4 + open-pull-requests-limit: 1 labels: - "dependabot" - "test-guided-notebooks" diff --git a/.github/workflows/dependabot-labeler.yaml b/.github/workflows/dependabot-labeler.yaml index 69c94617c..f9bd27f9c 100644 --- a/.github/workflows/dependabot-labeler.yaml +++ b/.github/workflows/dependabot-labeler.yaml @@ -1,10 +1,10 @@ # This workflow file adds the 'lgtm' and 'approved' labels to Dependabot PRs -# This is done to ensure that the PRs that pass e2e are automatically merged/added to merge-queues by the CodeFlare bot +# This is done to ensure that the PRs that pass required status checks are automatically merged by the CodeFlare bot name: Dependabot Labeler on: - pull_request: - types: [ labeled, synchronize, opened, reopened ] + pull_request_target: + branches: [ main ] jobs: add-approve-lgtm-label: @@ -24,4 +24,4 @@ jobs: run: | gh pr edit ${{ github.event.pull_request.number }} --add-label "lgtm" --add-label "approved" env: - GITHUB_TOKEN: ${{ secrets.CODEFLARE_MACHINE_ACCOUNT_TOKEN }} + GITHUB_TOKEN: ${{ secrets.GH_CLI_TOKEN }} diff --git a/.github/workflows/e2e_tests.yaml b/.github/workflows/e2e_tests.yaml index 8d2bcaa2d..7c4612822 100644 --- a/.github/workflows/e2e_tests.yaml +++ b/.github/workflows/e2e_tests.yaml @@ -3,7 +3,6 @@ name: e2e on: pull_request: - types: [ labeled, synchronize, opened, reopened ] branches: - main - 'release-*' @@ -12,16 +11,6 @@ on: - '**.adoc' - '**.md' - 'LICENSE' - push: - branches: - - main - - 'release-*' - paths-ignore: - - 'docs/**' - - '**.adoc' - - '**.md' - - 'LICENSE' - merge_group: concurrency: group: ${{ github.head_ref }}-${{ github.workflow }} @@ -32,7 +21,6 @@ env: jobs: kubernetes: - if: contains(github.event.pull_request.labels.*.name, 'e2e') || github.event_name == 'merge_group' runs-on: ubuntu-20.04-4core-gpu steps: diff --git a/.github/workflows/guided_notebook_tests.yaml b/.github/workflows/guided_notebook_tests.yaml index 46979aa96..466c81aa5 100644 --- a/.github/workflows/guided_notebook_tests.yaml +++ b/.github/workflows/guided_notebook_tests.yaml @@ -2,7 +2,7 @@ name: Guided notebooks tests on: pull_request: - types: [ labeled, synchronize, opened, reopened ] + branches: [ main ] concurrency: group: ${{ github.head_ref }}-${{ github.workflow }} @@ -13,7 +13,7 @@ env: jobs: verify-0_basic_ray: - if: contains(github.event.pull_request.labels.*.name, 'test-guided-notebooks') + if: ${{ contains(github.event.pull_request.labels.*.name, 'test-guided-notebooks') }} runs-on: ubuntu-20.04-4core steps: diff --git a/.github/workflows/pre-commit.yaml b/.github/workflows/pre-commit.yaml index e5c166464..1575a6549 100644 --- a/.github/workflows/pre-commit.yaml +++ b/.github/workflows/pre-commit.yaml @@ -1,13 +1,7 @@ name: Pre-commit on: - push: - branches: - - '**' - tags-ignore: - - 'v*' pull_request: workflow_dispatch: - merge_group: jobs: precommit: diff --git a/.github/workflows/ui_notebooks_test.yaml b/.github/workflows/ui_notebooks_test.yaml index cac6641a2..28f7e06c3 100644 --- a/.github/workflows/ui_notebooks_test.yaml +++ b/.github/workflows/ui_notebooks_test.yaml @@ -2,7 +2,7 @@ name: UI notebooks tests on: pull_request: - types: [ labeled, synchronize, opened, reopened ] + branches: [ main ] concurrency: group: ${{ github.head_ref }}-${{ github.workflow }} @@ -13,7 +13,7 @@ env: jobs: verify-3_widget_example: - if: contains(github.event.pull_request.labels.*.name, 'test-guided-notebooks') || contains(github.event.pull_request.labels.*.name, 'test-ui-notebooks') + if: ${{ contains(github.event.pull_request.labels.*.name, 'test-guided-notebooks') || contains(github.event.pull_request.labels.*.name, 'test-ui-notebooks') }} runs-on: ubuntu-20.04-4core steps: diff --git a/.github/workflows/unit-tests.yml b/.github/workflows/unit-tests.yml index 7391bb408..8b7a3a373 100755 --- a/.github/workflows/unit-tests.yml +++ b/.github/workflows/unit-tests.yml @@ -1,11 +1,8 @@ name: Python Tests on: - push: - branches: [ main ] pull_request: branches: [ main ] - merge_group: jobs: unit-tests: