Skip to content

Commit 5b94831

Browse files
committed
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.
1 parent bb3ff81 commit 5b94831

File tree

3 files changed

+42
-24
lines changed

3 files changed

+42
-24
lines changed

.github/workflows/test-asan.yml

Lines changed: 14 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3,23 +3,27 @@ name: test-asan
33
on:
44
pull_request:
55
types: [opened, synchronize, reopened, ready_for_review]
6-
paths-ignore:
7-
- '.mailmap'
8-
- '**.md'
9-
- 'AUTHORS'
10-
- 'doc/**'
6+
paths:
7+
- !'.github/*'
8+
- '.github/workflows/test-asan.yml'
9+
- !'.mailmap'
10+
- !'**.md'
11+
- !'AUTHORS'
12+
- !'doc/**'
1113
push:
1214
branches:
1315
- master
1416
- main
1517
- canary
1618
- v[0-9]+.x-staging
1719
- v[0-9]+.x
18-
paths-ignore:
19-
- '.mailmap'
20-
- '**.md'
21-
- 'AUTHORS'
22-
- 'doc/**'
20+
paths:
21+
- !'.github/*'
22+
- '.github/workflows/test-asan.yml'
23+
- !'.mailmap'
24+
- !'**.md'
25+
- !'AUTHORS'
26+
- !'doc/**'
2327

2428
env:
2529
PYTHON_VERSION: '3.10'

.github/workflows/test-linux.yml

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,13 @@ name: test-linux
22

33
on:
44
pull_request:
5-
paths-ignore:
6-
- "README.md"
5+
paths:
6+
- !'.github/*'
7+
- '.github/workflows/test-linux.yml'
8+
- !'.mailmap'
9+
- !'**.md'
10+
- !'AUTHORS'
11+
- !'doc/**'
712
types: [opened, synchronize, reopened, ready_for_review]
813
push:
914
branches:
@@ -12,8 +17,13 @@ on:
1217
- canary
1318
- v[0-9]+.x-staging
1419
- v[0-9]+.x
15-
paths-ignore:
16-
- "README.md"
20+
paths:
21+
- !'.github/*'
22+
- '.github/workflows/test-linux.yml'
23+
- !'.mailmap'
24+
- !'**.md'
25+
- !'AUTHORS'
26+
- !'doc/**'
1727

1828
env:
1929
PYTHON_VERSION: '3.10'

.github/workflows/test-macos.yml

Lines changed: 14 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3,23 +3,27 @@ name: test-macOS
33
on:
44
pull_request:
55
types: [opened, synchronize, reopened, ready_for_review]
6-
paths-ignore:
7-
- '.mailmap'
8-
- '**.md'
9-
- 'AUTHORS'
10-
- 'doc/**'
6+
paths:
7+
- !'.github/*'
8+
- '.github/workflows/test-macos.yml'
9+
- !'.mailmap'
10+
- !'**.md'
11+
- !'AUTHORS'
12+
- !'doc/**'
1113
push:
1214
branches:
1315
- master
1416
- main
1517
- canary
1618
- v[0-9]+.x-staging
1719
- v[0-9]+.x
18-
paths-ignore:
19-
- '.mailmap'
20-
- '**.md'
21-
- 'AUTHORS'
22-
- 'doc/**'
20+
paths:
21+
- !'.github/*'
22+
- '.github/workflows/test-macos.yml'
23+
- !'.mailmap'
24+
- !'**.md'
25+
- !'AUTHORS'
26+
- !'doc/**'
2327

2428
env:
2529
PYTHON_VERSION: '3.10'

0 commit comments

Comments
 (0)