@@ -166,6 +166,12 @@ def validate_travis(repo):
166
166
repo_has_travis = requests .get ("https://raw.githubusercontent.com/adafruit/" + repo ["name" ] + "/master/.travis.yml" )
167
167
return repo_has_travis .ok
168
168
169
+ def validate_actions (repo ):
170
+ """Validate if a repo has actions githubci.yml
171
+ """
172
+ repo_has_actions = requests .get ("https://raw.githubusercontent.com/adafruit/" + repo ["name" ] + "/master/.github/workflows/githubci.yml" )
173
+ return repo_has_actions .ok
174
+
169
175
def validate_example (repo ):
170
176
"""Validate if a repo has any files in examples directory
171
177
"""
@@ -181,7 +187,7 @@ def run_arduino_lib_checks():
181
187
failed_lib_prop = [[" Repo" , "Release Tag" , "library.properties Version" ], [" ----" , "-----------" , "--------------------------" ]]
182
188
needs_release_list = [[" Repo" , "Latest Release" , "Commits Behind" ], [" ----" , "--------------" , "--------------" ]]
183
189
needs_registration_list = [[" Repo" ], [" ----" ]]
184
- missing_travis_list = [[" Repo" ], [" ----" ]]
190
+ missing_ci_list = [[" Repo" ], [" ----" ]]
185
191
missing_library_properties_list = [[" Repo" ], [" ----" ]]
186
192
187
193
for repo in repo_list :
@@ -217,10 +223,10 @@ def run_arduino_lib_checks():
217
223
if needs_release :
218
224
needs_release_list .append ([" " + str (repo ["name" ]), needs_release [0 ], needs_release [1 ]])
219
225
220
- missing_travis = not validate_travis (repo )
221
- entry ['needs_travis ' ] = missing_travis
222
- if missing_travis :
223
- missing_travis_list .append ([" " + str (repo ["name" ])])
226
+ missing_ci = not validate_travis ( repo ) and not validate_actions (repo )
227
+ entry ['needs_ci ' ] = missing_ci
228
+ if missing_ci :
229
+ missing_ci_list .append ([" " + str (repo ["name" ])])
224
230
225
231
all_libraries .append (entry )
226
232
@@ -236,8 +242,8 @@ def run_arduino_lib_checks():
236
242
if len (needs_release_list ) > 2 :
237
243
print_list_output ("Libraries have commits since last release: ({})" , needs_release_list );
238
244
239
- if len (missing_travis_list ) > 2 :
240
- print_list_output ("Libraries that is not configured with Travis: ({})" , missing_travis_list )
245
+ if len (missing_ci_list ) > 2 :
246
+ print_list_output ("Libraries that is not configured with Travis or Actions : ({})" , missing_ci_list )
241
247
242
248
if len (missing_library_properties_list ) > 2 :
243
249
print_list_output ("Libraries that is missing library.properties file: ({})" , missing_library_properties_list )
0 commit comments