mirror of
https://github.com/MillironX/nf-configs.git
synced 2024-11-21 16:16:04 +00:00
fix cchecker
This commit is contained in:
parent
6475671c38
commit
2a69b90be6
1 changed files with 5 additions and 5 deletions
|
@ -58,16 +58,16 @@ def check_config(Config, Github):
|
|||
wf = yaml.safe_load(ghfile)
|
||||
profile_list = wf["profile_test"]["strategy"]["matrix"]["profile"]
|
||||
except Exception as e:
|
||||
return {"failed": ["Could not parse yaml file: {}, {}".format(Github, e)]}
|
||||
print("Could not parse yaml file: {}, {}".format(Github, e))
|
||||
sys.exit(1)
|
||||
# Add profiles to test
|
||||
for profile in profile_list:
|
||||
tests.add(profile.strip())
|
||||
|
||||
###Check if sets are equal
|
||||
if tests == config_profiles:
|
||||
sys.exit(0)
|
||||
else:
|
||||
#Maybe report what is missing here too
|
||||
try:
|
||||
assert tests == config_profiles
|
||||
except (AssertionError):
|
||||
print("Tests don't seem to test these profiles properly. Please check whether you added the profile to the Github Actions testing YAML.\n")
|
||||
print(config_profiles.symmetric_difference(tests))
|
||||
sys.exit(1)
|
||||
|
|
Loading…
Reference in a new issue