Skip to content

Commit a1be80e

Browse files
authored
Merge pull request #301 from PyO3/ci-no-fail-fast
Development tooling catch-up, redux
2 parents f5737d4 + 1408c9d commit a1be80e

File tree

2 files changed

+10
-3
lines changed

2 files changed

+10
-3
lines changed

.github/workflows/ci.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ jobs:
3131
runs-on: ${{ matrix.platform.os }}
3232
needs: [lint, check-msrv, examples]
3333
strategy:
34-
fail-fast: false
34+
fail-fast: ${{ !contains(github.event.pull_request.labels.*.name, 'CI-no-fail-fast') }}
3535
matrix:
3636
python-version: ["3.7", "3.8", "3.9", "3.10"]
3737
platform: [

x.py

+9-2
Original file line numberDiff line numberDiff line change
@@ -42,13 +42,16 @@ def check(args):
4242

4343

4444
def doc(args):
45-
run("cargo", "doc")
46-
4745
if args.name is None:
4846
run("cargo", "test", "--doc")
4947
else:
5048
run("cargo", "test", "--doc", args.name)
5149

50+
if args.open:
51+
run("cargo", "doc", "--open")
52+
else:
53+
run("cargo", "doc")
54+
5255

5356
def test(args):
5457
if args.name is None:
@@ -91,6 +94,7 @@ def format_(args):
9194
)
9295

9396
run("cargo", "fmt")
97+
9498
run("black", ".")
9599

96100

@@ -111,6 +115,9 @@ def format_(args):
111115
)
112116
doc_parser.set_defaults(func=doc)
113117
doc_parser.add_argument("name", nargs="?", help="Test case name")
118+
doc_parser.add_argument(
119+
"--open", "-o", action="store_true", help="Open documentation in browser"
120+
)
114121

115122
test_parser = subparsers.add_parser("test", aliases=["t"], help="Integration tests")
116123
test_parser.set_defaults(func=test)

0 commit comments

Comments
 (0)