-
-
Notifications
You must be signed in to change notification settings - Fork 138
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
Test Notebooks #298
Test Notebooks #298
Conversation
@chinmayshah99 the urls in this notebook seems to be invalid. I replaced "demo" to "dev" in order to make it work (https://raw.githubusercontent.com/OpenMined/PyDP/demo/examples/Tutorial%204-Launch_demo/data/01.csv -> https://raw.githubusercontent.com/OpenMined/PyDP/dev/examples/Tutorial%204-Launch_demo/data/01.csv). Suspect that this is a problem since my notebook test seems to fail here. |
@@ -75,7 +75,7 @@ $ make build | |||
|
|||
Run the test example: | |||
``` | |||
$ pipenv run python examples/carrots.py | |||
$ pipenv run python examples/carrots_demo/carrots.py |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Rather, can we include this as part of pytest
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I guess we could. I'm just not sure what was the original intention of putting this script in the contributing.md file? Was it perhaps to let newcomers try and run the code by themselves to get a better feel for the repo? In that case, maybe we should still put this command as part of contributing.md?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The idea is new-comers could try the python notebook to run our code. the python files are for how to include them as part of the codebase.
I just realized this comment was supposed to be for the file in tests
folder.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@chinmayshah99 I moved jupyter & pandas to devDependencies but the CI seemed to dislike this (?) I encountered jupyter can't be found error (https://github.com/OpenMined/PyDP/runs/1132943621?check_suite_focus=true)
You can check why your tests are failing here: https://github.com/OpenMined/PyDP/pull/298/checks?check_run_id=1118715651#step:13:88 |
Thanks chinmay. Yes I saw this:
I tried to call that url1 manually in browser, seems to face the same 404 error. Works when I changed PyDP/demo/examples to PyDP/dev/examples though |
Hey @edwardelson
|
The issue is that on windows a So Change
to
Nitpicks: Some of the variable names are camel case instead of snake case. Example: Otherwise it looks good to me. |
oh yes that works, thanks @BenjaminDev ! I've also updated the variable names. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! @edwardelson can you remove WIP title?
Description
This is written to address Issue #294.
TODO
Affected Dependencies
List any dependencies that are required for this change.
How has this been tested?
I've only run "make test" to ensure that this test can be executed by pytest. Not sure how to further test this testing script though.
Checklist