File tree 1 file changed +10
-6
lines changed
1 file changed +10
-6
lines changed Original file line number Diff line number Diff line change @@ -26,11 +26,8 @@ def read_index(path):
26
26
27
27
matrix = []
28
28
for tutorial in index ["tutorial" ]:
29
- notebook = tutorial ["notebook" ]
30
-
31
- if args .notebooks and notebook not in args .notebooks :
32
- # If the user specified a list of notebooks to run, only run those
33
- # otherwise run all of them
29
+ if tutorial .get ("hidden" , False ):
30
+ # Do not waste CI time on hidden tutorials
34
31
continue
35
32
36
33
if tutorial .get ("needs_gpu" , False ):
@@ -46,10 +43,17 @@ def read_index(path):
46
43
if is_haystack2 and not tutorial .get ("haystack_2" , False ):
47
44
# Skip Haystack 1.0 tutorials when testing Haystack 2.0
48
45
continue
49
- elif not is_haystack2 and tutorial .get ("haystack_2" , False ):
46
+
47
+ if not is_haystack2 and tutorial .get ("haystack_2" , False ):
50
48
# Skip Haystack 2.0 tutorials when testing Haystack 1.0
51
49
continue
52
50
51
+ notebook = tutorial ["notebook" ]
52
+ if args .notebooks and notebook not in args .notebooks :
53
+ # If the user specified a list of notebooks to run, only run those
54
+ # otherwise run all of them
55
+ continue
56
+
53
57
version = tutorial .get ("haystack_version" , args .version )
54
58
if version [0 ] != "v" :
55
59
version = f"v{ version } "
You can’t perform that action at this time.
0 commit comments