-
Notifications
You must be signed in to change notification settings - Fork 7
Repo dispatch #18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Repo dispatch #18
Changes from all commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
9fe61e1
use skip flag for turning off tests
jburel 12dab2b
add script to turn test on/off depending on the repo posting event
jburel f1e4823
adjust script to add support for other repo
jburel 9b099f6
handle repository dispatch
jburel 1ead12c
send comment
jburel 49677a2
Do not post event back to repo
jburel 7da0784
Remove ref to perso repo
jburel ba24f61
fix formatting
jburel 7b69dc4
add creation of issue on failure
jburel cb14a8f
add bug label
jburel 72f1299
review explanation
jburel a30af52
use variable
jburel File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,31 @@ | ||
| import sys | ||
|
|
||
| import yaml | ||
|
|
||
| # Change the value of the skip flag depending on the repository used | ||
| # repository. Supported value: | ||
| # "bioformats2raw": do not skip the tests using bioformats2raw script | ||
| # "ome_zarr": do not skip the tests using ome-zarr-py | ||
| # "omero_ms_zarr": : do not skip the tests using omero-ms-zarr | ||
|
|
||
|
|
||
| def main() -> None: | ||
| argv = sys.argv[1:] | ||
| value = argv[0] | ||
| with open("sources.yml") as f: | ||
| doc = yaml.safe_load(f) | ||
| for k in doc: | ||
| k["skip"] = True | ||
| if "script" in k: | ||
| if k["script"].startswith(value): | ||
| k["skip"] = False | ||
| else: | ||
| if value == "ome_zarr": | ||
| k["skip"] = False | ||
|
|
||
| with open("sources.yml", "w") as f: | ||
| yaml.dump(doc, f, default_flow_style=False, sort_keys=False) | ||
|
|
||
|
|
||
| if __name__ == "__main__": | ||
| main() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.