You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Periodically build notebooks to ensure they haven't broken #43
APIs and data change, and over time our notebooks end up with errors. #42 is one example of this.
Let's add a CI layer that runs the notebooks periodically, so we can be notified when things break, rather than finding out at or soon before a tutorial when we're trying to teach them....
This may require some creative thinking to get the tokens working correctly.
@yochannah I used this package testipynb. I added a script that tests all *.ipynb files and reports whether they are failed or passed.
There only two things that need to be added:
automize the file so that it checks all the files at a specific time every day. Something like a Cron job?
Do you want to look at all ipynb files in a specific folder or the whole repository?
Here is the code, I just need you to confirm for me that the above changes are fine.
import unittest
NBDIR = '/Users/mahzadkhoshlessan/Desktop/intermine-ws-python-docs'
Test = testipynb.TestNotebooks(directory=NBDIR, timeout=2100)
TestNotebooks = Test.get_tests()
if __name__ == "__main__":
unittest.main()
@niveditarufus@mkhoshle Both of you can try solving this issue. We won't judge you based on who has the best implementation here. The goal here is to demonstrate your collaboration skills(git, PR, communication).
Activity
niveditarufus commentedon Mar 7, 2020
I would really like to look into this, can it be assigned to me?
mkhoshle commentedon Mar 9, 2020
@yochannah I am an outreachy applicant and I am interested to pick up this issue. Can I work on this issue?
mkhoshle commentedon Mar 9, 2020
@yochannah I used this package testipynb. I added a script that tests all *.ipynb files and reports whether they are failed or passed.
There only two things that need to be added:
ipynbfiles in a specific folder or the whole repository?Here is the code, I just need you to confirm for me that the above changes are fine.
And here is how the output looks like:
Output
leoank commentedon Mar 10, 2020
@niveditarufus @mkhoshle Both of you can try solving this issue. We won't judge you based on who has the best implementation here. The goal here is to demonstrate your collaboration skills(git, PR, communication).
niveditarufus commentedon Mar 10, 2020
Submitted a pull request which might close the issue. @leoank @uosl @yochannah Kindly review it.
Merge pull request #47 from niveditarufus/nivedita-test-gitlab