From 45dbbcefc2e6f7ef9867512ba3b3832309a7b982 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-macos.yml | 24 ++++++++++++++---------- 2 files changed, 28 insertions(+), 20 deletions(-) diff --git a/.github/workflows/test-asan.yml b/.github/workflows/test-asan.yml index 021747ace19a4b..420064b5c33428 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-macos.yml b/.github/workflows/test-macos.yml index 6c5e3ab310cb27..c8f022ce518b38 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'