@@ -160,11 +160,11 @@ def validate_release_state(repo):
160
160
161
161
return
162
162
163
- def validate_travis (repo ):
164
- """Validate if a repo has .travis. yml.
163
+ def validate_actions (repo ):
164
+ """Validate if a repo has workflows/githubci. yml
165
165
"""
166
- repo_has_travis = requests .get ("https://raw.githubusercontent.com/adafruit/" + repo ["name" ] + "/master/.travis .yml" )
167
- return repo_has_travis .ok
166
+ repo_has_actions = requests .get ("https://raw.githubusercontent.com/adafruit/" + repo ["name" ] + "/master/.github/workflows/githubci .yml" )
167
+ return repo_has_actions .ok
168
168
169
169
def validate_example (repo ):
170
170
"""Validate if a repo has any files in examples directory
@@ -181,7 +181,7 @@ def run_arduino_lib_checks():
181
181
failed_lib_prop = [[" Repo" , "Release Tag" , "library.properties Version" ], [" ----" , "-----------" , "--------------------------" ]]
182
182
needs_release_list = [[" Repo" , "Latest Release" , "Commits Behind" ], [" ----" , "--------------" , "--------------" ]]
183
183
needs_registration_list = [[" Repo" ], [" ----" ]]
184
- missing_travis_list = [[" Repo" ], [" ----" ]]
184
+ missing_actions_list = [[" Repo" ], [" ----" ]]
185
185
missing_library_properties_list = [[" Repo" ], [" ----" ]]
186
186
187
187
for repo in repo_list :
@@ -217,10 +217,10 @@ def run_arduino_lib_checks():
217
217
if needs_release :
218
218
needs_release_list .append ([" " + str (repo ["name" ]), needs_release [0 ], needs_release [1 ]])
219
219
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" ])])
220
+ missing_actions = not validate_actions (repo )
221
+ entry ['needs_actions ' ] = missing_actions
222
+ if missing_actions :
223
+ missing_actions_list .append ([" " + str (repo ["name" ])])
224
224
225
225
all_libraries .append (entry )
226
226
@@ -236,8 +236,8 @@ def run_arduino_lib_checks():
236
236
if len (needs_release_list ) > 2 :
237
237
print_list_output ("Libraries have commits since last release: ({})" , needs_release_list );
238
238
239
- if len (missing_travis_list ) > 2 :
240
- print_list_output ("Libraries that is not configured with Travis : ({})" , missing_travis_list )
239
+ if len (missing_actions_list ) > 2 :
240
+ print_list_output ("Libraries that is not configured with Actions : ({})" , missing_actions_list )
241
241
242
242
if len (missing_library_properties_list ) > 2 :
243
243
print_list_output ("Libraries that is missing library.properties file: ({})" , missing_library_properties_list )
0 commit comments