Skip to content
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

setup a CRON job for testing examples #944

Merged
merged 35 commits into from
Mar 3, 2021
Merged

setup a CRON job for testing examples #944

merged 35 commits into from
Mar 3, 2021

Conversation

MridulS
Copy link
Member

@MridulS MridulS commented Feb 8, 2021

fixes #943

@sbenthall
Copy link
Contributor

  • Any idea why the tests failed here?
  • Looks like this runs only one example. Is the idea to extend it and add the others as well?

@MridulS
Copy link
Member Author

MridulS commented Feb 16, 2021

Any idea why the tests failed here?

The tests are timing out because of matplotlib and it is trying to build a font cache (erratic behaviour)

Looks like this runs only one example. Is the idea to extend it and add the others as well?

Yeah that's the idea, this PR is just a test for it.

@MridulS MridulS changed the title setup a CRON job for testing examples [WIP] setup a CRON job for testing examples Feb 16, 2021
@codecov-io
Copy link

codecov-io commented Feb 18, 2021

Codecov Report

Merging #944 (4d18621) into master (799943e) will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #944   +/-   ##
=======================================
  Coverage   71.85%   71.85%           
=======================================
  Files          62       62           
  Lines        9205     9205           
=======================================
  Hits         6614     6614           
  Misses       2591     2591           

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 799943e...4d18621. Read the comment docs.

@sbenthall sbenthall modified the milestone: 1.0.0 Feb 25, 2021
@sbenthall
Copy link
Contributor

I've been trying to get this running all weekend, and now see this doesn't even test the notebook examples, but the python files cut from the ConsumptionSaving code like a year ago? Why are we maintaining them?

in any case, this is not ready for the 1.0 release. I'm removing the milestone.

@sbenthall sbenthall removed this from the 1.0.0 milestone Feb 28, 2021
@MridulS
Copy link
Member Author

MridulS commented Feb 28, 2021

the python files are supposed to be jupytext synced with the notebook files.
It doesn't really matter if we test running python files or notebooks, but if we keep both of them then we should test both of them.

@sbenthall
Copy link
Contributor

they do not seem to be jupytext synced to the notebooks.

@llorracc
Copy link
Collaborator

llorracc commented Mar 1, 2021 via email

@llorracc
Copy link
Collaborator

llorracc commented Mar 1, 2021

OK, I did what I described above and locally deleted all the .ipynb notebooks. I found a few minor problems and have now managed to fix most of them. There are only a couple remaining, and those might be fixed if I do the opposite (load from the ipynb file disregarding the .py). Bottom line is I think all DemARKs can be working by end of day.

@MridulS
Copy link
Member Author

MridulS commented Mar 2, 2021

btw everything passes if we just use pytest --nbval-lax (this only checks if every cell executes), currently looking into making it work with pytest --nbval too (not a priority but makes the tests more robust).

@MridulS
Copy link
Member Author

MridulS commented Mar 3, 2021

@sbenthall the CRON job is setup and it passes now. Let me know if you are okay with the changes to the example notebooks and you can merge it then.

@MridulS MridulS changed the title [WIP] setup a CRON job for testing examples setup a CRON job for testing examples Mar 3, 2021
@sbenthall sbenthall merged commit a5b8920 into master Mar 3, 2021
@MridulS MridulS deleted the MridulS-patch-1 branch May 5, 2021 15:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Make sure examples/ are all working
5 participants