-
Notifications
You must be signed in to change notification settings - Fork 226
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
Refactor build_examples.py #110
Conversation
- Use `pathlib.Path` instead of `os.path` - Fix order of files while building - Consolidate code for building demos, examples and tutorial - Change argument from `tutorials` to `tutorial` to remain consistent - Add some indentation in console output for better readability
I would like to include a new action to restore generated files using |
Sounds like a good idea; I would welcome a code contribution for this! |
I don't have the time right now, maybe later in the evening. |
Does this PR address this issue? 0da4441#r40750948 |
Yes, see latest commit :) Thanks |
Why remove the upload action? I don't see how the build results can be verified without it, unless there is a new action that performs regression testing. Otherwise, the outputs are generated and ignored. It shouldn't count against any git quotas, I don't see a reason to remove it, but please let me know if I'm missing something. The actions are all entirely serverside. Great work on the refactor! |
@aakatz3 Can you briefly explain what the upload action does or link to a description. I want to learn. :-) |
Sure! This is the action it uses. The way it is configured, it essentially zips up the examples and tutorial folders after github actions runs the build test, and uploads them so that a user can download them, to manually verify them. They appear here: Clicking the link will provide you with a .zip file, which has the directories that are specified in the action to upload. Inside those folders are all of the files that are in the folders after running all previous tasks in the github action, I.E. installing graphviz and dependancies, and generating the examples. This is a particularly useful tool because, while an individual developer's environment may differ, the VM that builds the github action is always the same, which means it is perfect for both automated and manual regression testing. You could either then take the uploaded artifact and pass it to some external testing service, or download it and manually examine the generated images and other outputs, to make sure they match the ones you generate on your system, and work as expected. If you would like more information, I can try to find a slightly easier tutorial than the repo for the action itself, as it is slightly confusing. |
Improved refactoring is being taken care of in #118, closing. |
pathlib.Path
instead ofos.path
tutorials
totutorial
to remain consistent