Skip to content

Commit ab4d069

Browse files
committed
Use CI-no-fail-fast label to disable fail-fast for CI
1 parent 63ee6e9 commit ab4d069

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

.github/workflows/ci.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,8 @@ jobs:
5252
name: ${{ matrix.python-version }} ${{ matrix.platform.os }}-${{ matrix.platform.python-architecture }}
5353
runs-on: ${{ matrix.platform.os }}
5454
strategy:
55-
fail-fast: false # If one platform fails, allow the rest to keep testing.
55+
# If one platform fails, allow the rest to keep testing if `CI-no-fail-fast` label is present
56+
fail-fast: ${{ !contains(github.event.pull_request.labels.*.name, 'CI-no-fail-fast') }}
5657
matrix:
5758
python-version: [3.6, 3.7, 3.8, 3.9, "3.10", pypy-3.6, pypy-3.7]
5859
platform: [
@@ -143,6 +144,8 @@ jobs:
143144
test-abi3:
144145
runs-on: ${{ matrix.os }}
145146
strategy:
147+
# If one platform fails, allow the rest to keep testing if `CI-no-fail-fast` label is present
148+
fail-fast: ${{ !contains(github.event.pull_request.labels.*.name, 'CI-no-fail-fast') }}
146149
matrix:
147150
os: [ubuntu-latest, macos-latest, windows-latest]
148151
steps:
@@ -197,6 +200,8 @@ jobs:
197200
test-cross-compile:
198201
runs-on: ubuntu-latest
199202
strategy:
203+
# If one platform fails, allow the rest to keep testing if `CI-no-fail-fast` label is present
204+
fail-fast: ${{ !contains(github.event.pull_request.labels.*.name, 'CI-no-fail-fast') }}
200205
matrix:
201206
platform: [
202207
{ target: "aarch64-unknown-linux-gnu", arch: "aarch64" },

0 commit comments

Comments
 (0)