File tree Expand file tree Collapse file tree 2 files changed +10
-3
lines changed Expand file tree Collapse file tree 2 files changed +10
-3
lines changed Original file line number Diff line number Diff line change 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 : [
Original file line number Diff line number Diff line change @@ -42,13 +42,16 @@ def check(args):
4242
4343
4444def 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
5356def 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 )
You can’t perform that action at this time.
0 commit comments