-
Notifications
You must be signed in to change notification settings - Fork 5
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
update to_pygfx #31
update to_pygfx #31
Conversation
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## main #31 +/- ##
==========================================
+ Coverage 96.65% 96.76% +0.10%
==========================================
Files 151 151
Lines 1856 1857 +1
==========================================
+ Hits 1794 1797 +3
+ Misses 62 60 -2 ☔ View full report in Codecov by Sentry. |
tests/test_third_party.py
Outdated
@@ -79,19 +79,20 @@ def test_plotly() -> None: | |||
px.imshow(IMG, color_continuous_scale=CMAP.to_plotly()) | |||
|
|||
|
|||
@pytest.mark.skipif(bool(os.getenv("CI")), reason="segfaults") | |||
@pytest.mark.skipif(bool(os.getenv("CI")), reason="need to fix drivers") |
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.
fpl and pygfx CI might offer some help, you need to add a step to install lavapipe in your CI workflow: https://github.com/fastplotlib/fastplotlib/blob/main/.github/workflows/ci.yml#L131-L134
If you want create test screenshots of the canvas, you can use the offscreen canvas (I think you can also take a screenshot of a Qt window or widget and save that to pngs).
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.
Thanks @kushalkolar. I did actually have that in a previous commit tlambert03@17b0c47... but then the xvfb tests failed for some reason. All the other third party tests work fine with that setup though, so I need to find something that works for all of them.
updates the to_pygfx method to deal with some upstream deprecations