From fb1044add4f3e4a2b3661340f1574d39337540c6 Mon Sep 17 00:00:00 2001 From: Rich Trott Date: Mon, 22 Nov 2021 14:56:15 -0800 Subject: [PATCH] build: ignore unrelated workflow changes in slow Actions tests test-asan and test-macos are very slow and tend to get backed up. While I'm literally waiting hours right now for test-macos to finish so I can land a PR, I'm opening this pull request to have it be skipped when things other than its own workflow file are the only changes in the PR. --- .github/workflows/test-asan.yml | 26 ++++++++++++++++---------- .github/workflows/test-linux.yml | 20 ++++++++++++++++---- .github/workflows/test-macos.yml | 26 ++++++++++++++++---------- 3 files changed, 48 insertions(+), 24 deletions(-) diff --git a/.github/workflows/test-asan.yml b/.github/workflows/test-asan.yml index 021747ace19a4b..f61f1ded974330 100644 --- a/.github/workflows/test-asan.yml +++ b/.github/workflows/test-asan.yml @@ -3,11 +3,14 @@ name: test-asan on: pull_request: types: [opened, synchronize, reopened, ready_for_review] - paths-ignore: - - '.mailmap' - - '**.md' - - 'AUTHORS' - - 'doc/**' + paths: + - '*' + - !'.mailmap' + - !'**.md' + - !'AUTHORS' + - !'doc/**' + - !'.github/*' + - '.github/workflows/test-asan.yml' push: branches: - master @@ -15,11 +18,14 @@ on: - canary - v[0-9]+.x-staging - v[0-9]+.x - paths-ignore: - - '.mailmap' - - '**.md' - - 'AUTHORS' - - 'doc/**' + paths: + - '*' + - !'.mailmap' + - !'**.md' + - !'AUTHORS' + - !'doc/**' + - !'.github/*' + - '.github/workflows/test-asan.yml' env: PYTHON_VERSION: '3.10' diff --git a/.github/workflows/test-linux.yml b/.github/workflows/test-linux.yml index b7dce4dd8a9672..1a5fb0733afe76 100644 --- a/.github/workflows/test-linux.yml +++ b/.github/workflows/test-linux.yml @@ -2,8 +2,14 @@ name: test-linux on: pull_request: - paths-ignore: - - "README.md" + paths: + - '*' + - !'.mailmap' + - !'**.md' + - !'AUTHORS' + - !'doc/**' + - !'.github/*' + - '.github/workflows/test-linux.yml' types: [opened, synchronize, reopened, ready_for_review] push: branches: @@ -12,8 +18,14 @@ on: - canary - v[0-9]+.x-staging - v[0-9]+.x - paths-ignore: - - "README.md" + paths: + - '*' + - !'.mailmap' + - !'**.md' + - !'AUTHORS' + - !'doc/**' + - !'.github/*' + - '.github/workflows/test-linux.yml' env: PYTHON_VERSION: '3.10' diff --git a/.github/workflows/test-macos.yml b/.github/workflows/test-macos.yml index 6c5e3ab310cb27..16c67b2840488b 100644 --- a/.github/workflows/test-macos.yml +++ b/.github/workflows/test-macos.yml @@ -3,11 +3,14 @@ name: test-macOS on: pull_request: types: [opened, synchronize, reopened, ready_for_review] - paths-ignore: - - '.mailmap' - - '**.md' - - 'AUTHORS' - - 'doc/**' + paths: + - '*' + - !'.mailmap' + - !'**.md' + - !'AUTHORS' + - !'doc/**' + - !'.github/*' + - '.github/workflows/test-macos.yml' push: branches: - master @@ -15,11 +18,14 @@ on: - canary - v[0-9]+.x-staging - v[0-9]+.x - paths-ignore: - - '.mailmap' - - '**.md' - - 'AUTHORS' - - 'doc/**' + paths: + - '*' + - !'.mailmap' + - !'**.md' + - !'AUTHORS' + - !'doc/**' + - !'.github/*' + - '.github/workflows/test-macos.yml' env: PYTHON_VERSION: '3.10'