From 5b9483116c041dbed74ae122ca07177230873850 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 | 24 ++++++++++++++---------- .github/workflows/test-linux.yml | 18 ++++++++++++++---- .github/workflows/test-macos.yml | 24 ++++++++++++++---------- 3 files changed, 42 insertions(+), 24 deletions(-) diff --git a/.github/workflows/test-asan.yml b/.github/workflows/test-asan.yml index 021747ace19a4ba..420064b5c334282 100644 --- a/.github/workflows/test-asan.yml +++ b/.github/workflows/test-asan.yml @@ -3,11 +3,13 @@ name: test-asan on: pull_request: types: [opened, synchronize, reopened, ready_for_review] - paths-ignore: - - '.mailmap' - - '**.md' - - 'AUTHORS' - - 'doc/**' + paths: + - !'.github/*' + - '.github/workflows/test-asan.yml' + - !'.mailmap' + - !'**.md' + - !'AUTHORS' + - !'doc/**' push: branches: - master @@ -15,11 +17,13 @@ on: - canary - v[0-9]+.x-staging - v[0-9]+.x - paths-ignore: - - '.mailmap' - - '**.md' - - 'AUTHORS' - - 'doc/**' + paths: + - !'.github/*' + - '.github/workflows/test-asan.yml' + - !'.mailmap' + - !'**.md' + - !'AUTHORS' + - !'doc/**' env: PYTHON_VERSION: '3.10' diff --git a/.github/workflows/test-linux.yml b/.github/workflows/test-linux.yml index b7dce4dd8a96726..a5e4c875b6b725a 100644 --- a/.github/workflows/test-linux.yml +++ b/.github/workflows/test-linux.yml @@ -2,8 +2,13 @@ name: test-linux on: pull_request: - paths-ignore: - - "README.md" + paths: + - !'.github/*' + - '.github/workflows/test-linux.yml' + - !'.mailmap' + - !'**.md' + - !'AUTHORS' + - !'doc/**' types: [opened, synchronize, reopened, ready_for_review] push: branches: @@ -12,8 +17,13 @@ on: - canary - v[0-9]+.x-staging - v[0-9]+.x - paths-ignore: - - "README.md" + paths: + - !'.github/*' + - '.github/workflows/test-linux.yml' + - !'.mailmap' + - !'**.md' + - !'AUTHORS' + - !'doc/**' env: PYTHON_VERSION: '3.10' diff --git a/.github/workflows/test-macos.yml b/.github/workflows/test-macos.yml index 6c5e3ab310cb275..c8f022ce518b385 100644 --- a/.github/workflows/test-macos.yml +++ b/.github/workflows/test-macos.yml @@ -3,11 +3,13 @@ name: test-macOS on: pull_request: types: [opened, synchronize, reopened, ready_for_review] - paths-ignore: - - '.mailmap' - - '**.md' - - 'AUTHORS' - - 'doc/**' + paths: + - !'.github/*' + - '.github/workflows/test-macos.yml' + - !'.mailmap' + - !'**.md' + - !'AUTHORS' + - !'doc/**' push: branches: - master @@ -15,11 +17,13 @@ on: - canary - v[0-9]+.x-staging - v[0-9]+.x - paths-ignore: - - '.mailmap' - - '**.md' - - 'AUTHORS' - - 'doc/**' + paths: + - !'.github/*' + - '.github/workflows/test-macos.yml' + - !'.mailmap' + - !'**.md' + - !'AUTHORS' + - !'doc/**' env: PYTHON_VERSION: '3.10'