File tree 2 files changed +10
-3
lines changed
2 files changed +10
-3
lines changed Original file line number Diff line number Diff line change 31
31
runs-on : ${{ matrix.platform.os }}
32
32
needs : [lint, check-msrv, examples]
33
33
strategy :
34
- fail-fast : false
34
+ fail-fast : ${{ !contains(github.event.pull_request.labels.*.name, 'CI-no-fail-fast') }}
35
35
matrix :
36
36
python-version : ["3.7", "3.8", "3.9", "3.10"]
37
37
platform : [
Original file line number Diff line number Diff line change @@ -42,13 +42,16 @@ def check(args):
42
42
43
43
44
44
def doc (args ):
45
- run ("cargo" , "doc" )
46
-
47
45
if args .name is None :
48
46
run ("cargo" , "test" , "--doc" )
49
47
else :
50
48
run ("cargo" , "test" , "--doc" , args .name )
51
49
50
+ if args .open :
51
+ run ("cargo" , "doc" , "--open" )
52
+ else :
53
+ run ("cargo" , "doc" )
54
+
52
55
53
56
def test (args ):
54
57
if args .name is None :
@@ -91,6 +94,7 @@ def format_(args):
91
94
)
92
95
93
96
run ("cargo" , "fmt" )
97
+
94
98
run ("black" , "." )
95
99
96
100
@@ -111,6 +115,9 @@ def format_(args):
111
115
)
112
116
doc_parser .set_defaults (func = doc )
113
117
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
+ )
114
121
115
122
test_parser = subparsers .add_parser ("test" , aliases = ["t" ], help = "Integration tests" )
116
123
test_parser .set_defaults (func = test )
You can’t perform that action at this time.
0 commit comments