-
Notifications
You must be signed in to change notification settings - Fork 26
Make image reference tests work on CI #146
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
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #146 +/- ##
==========================================
- Coverage 78.39% 74.03% -4.36%
==========================================
Files 10 10
Lines 597 647 +50
==========================================
+ Hits 468 479 +11
- Misses 129 168 +39 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
@Kolaru - after a bit of messing around this should all be working now. The workflow is
All you need to do is make the reference images using the |
|
Not sure why coverage has gone down slightly. I have got it uploading the coverage files from the reference tests as well. I suspect that I don't understand how the coverage test works; the coverage test fails before the reference tests have finished, suggesting that the coverage from that CI run doesn't get used. |
|
Thanks a lot, this is stellar! If I understand correctly, you made a separate GH action so that we can examine the images if the reference tests fail, right? Now I just have to figure out the release: I'm thinking of tagging the main branch after this is merged, and patch the URL immediatly afterwards. I'll review the PR in more depth later this week/this weekend. |
|
At the moment it's separate just because it was the easiest way to check that it works. It could be combined with the existing unit tests, which would then have the advantage that it only runs if the unit tests pass. (It could easily consume quite a bit of CI time since Makie isn't the fastest to precompile.) If you want, I can make that change later in the week. That said, the unit tests run on more OSes than the reference tests do, and so putting them in the same action will consume more CI time regardless. I don't think it matters whether you patch the URL before or after the release. Though after is going to be easier since you don't have to guess at what the URL format should be. |
|
Sorry for the long time coming back to this. I think I figured out everything (I just already released the refimages), and everything should work once merged. Thanks so much for your help, this is stellar! |
Add functionality to download a tarball from a GitHub release and compare against the current branch.
Currently downloads a test tarball from issue #145. The generate.jl script will generate the relevant tarball to upload as a release.
When merged this fixes #145