-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Add github actions workflow for tests #4017
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
Conversation
People have reported much slower speeds on native windows before, I would imagine it's related to that. Overall it would be great to get Windows testing here. What's missing? Seems like many tests are still failing. |
Fixes for the windows issues are missing. I don't know what's going on there, they look like legitimate issues, not just test env stuff. |
Codecov Report
@@ Coverage Diff @@
## master #4017 +/- ##
=======================================
Coverage 88.19% 88.19%
=======================================
Files 89 89
Lines 14358 14358
=======================================
Hits 12663 12663
Misses 1695 1695
|
@aseyboldt You mean the windows issues should not block us from merging? If so, I'm uneasy having a broken CI on master if we have no known path of fixing those issues. |
@twiecki You are right, we should fix those issues before merging... |
@aseyboldt can you resolve the conflicts? And how much work is left to do to push this over the finish line? |
I think the way forward here is to disable the windows builds for now, get this merged, and then figure windows out separately. @MarcoGorelli agreed to take this over - thanks Marco! |
sorry about the intervention - the merge conflict was just about whitespace. But I still fucked it up - black wants an empty line behind that import 🙄 |
Do you have a strong preference for using conda? I just gave this a go using pip in my fork and it seems to work fine, see MarcoGorelli#2 |
What do you mean by "using conda"? |
In this PR, the action creates a conda environment:
Maybe we could use conda for the Windows job, and pip for the Linux one, so both are tested - I'll take a closer look tomorrow |
@MarcoGorelli I prefer conda because it's a) much faster to install and b) sets everything up correctly with MKL. Furthermore, it's the recommended way to install PyMC3. Why do you think pip would be preferable? |
I hadn't realised conda was the recommended way to install, so |
Thanks for having started this, it was really helpful - closing as the move to GHA been implemented in other PRs |
Right now we don't run our tests on windows automatically, which led to some problems there in the past.
This PR adds a github actions workflow that tests on linux and windows in addition to the tests on travis.
If we merge, those tests will be run for future PRs, so that we can evaluate github actions and see if we want to run it in addition or instead of travis.
Things to improve:
.theano
dir especially). The tests are somewhat slower on github actions compared to travis, this might be the reason.There are some I think legitimate test failures on windows right now. One compiler issue on xeon CPUs is "fixed" by setting
-march=cores2
in the tests, but some shape issues and the fact that np.float128 is not available on windows with the MS compiler remain.Also, the windows tests take about twice as long to run, I'm not sure if this is due to higher IO overhead on the virtual machines or has some other reason.
CC @canyon289 @brandonwillard @junpenglao