-
Notifications
You must be signed in to change notification settings - Fork 27
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
Add a sample test using pytest-pyvista
#450
Add a sample test using pytest-pyvista
#450
Conversation
pytest-pyvista
I recommend using |
Co-authored-by: MatthewFlamm <[email protected]>
Thank you. |
Since it seems that conda-forge can also be created by non-authors, I will consider creating it. |
@bjlittle Could you please tell me how to register a new package in the lock file so that it will be installed by CI when we add a new package via pull request? |
Of course, if you don't want to reject this PR LOL. |
Ahhh it's a shame that Essentially, the GHA CI ci-locks task renders all the package dependencies each week (scheduled as a GHA cron), but under the hood it's using conda-lock to do this ... the thing I'll need to investigate is whether it honours the use of Hence, having |
Of course not ... I'm excited that you're pushing this forwards @tkoyama010 and thanks @MatthewFlamm for getting involved 🍻 |
@bjlittle |
I will update the conda environment after conda-forge/staged-recipes#24058 is released. |
@tkoyama010 Of course, once This puts pressure on resolving #447. Do you have a feel for whether this is possible soon? If not, then as a temporary measure I guess I'll have to introduce a In fact, thinking about this I'm kinda forced to do this now for safety, and push a post release for 0.4.0. What do you think? |
@tkoyama010 Of course, once This puts pressure on resolving #447. Do you have a feel for whether this is possible soon? If not, then as a temporary measure I guess I'll have to introduce a In fact, thinking about this I'm kinda forced to do this now for safety, and push a post release for 0.4.0 |
@tkoyama010 You'll also need to add |
This reverts commit b69c021.
pre-commit.ci autofix |
pre-commit.ci autofix |
for more information, see https://pre-commit.ci
|
Are you using osmesa vtk library or using xvfb? |
It would be useful to add in an environment state and/or a |
Note that, the CI is using the QT bindings to For example, see https://github.com/bjlittle/geovista/blob/main/requirements/locks/py311-lock-linux-64.txt |
Neither. Is it the case that we should have:
It's only Qt vtk at present. |
I think these are the options that PyVista has used in the recent past. I remember xvfb was flaky in the CI. The way pytest-pyvista works is that it hooks into the I could envision adding functionality to pytest-pyvista to work without this requirement by only using |
pre-commit.ci autofix |
for more information, see https://pre-commit.ci
Since this PR seems to be the preferred one to move forward, I will place here. The other PRs have regression errors. I strongly recommend using a pyvista theme that is set in a Edit: It looks like the image resolution in the file is much higher than image resolution used in pyvista. I think a higher image resolution would require a higher allowable threshold based on the way it is defined currently. You might also find that a lower resolution might be more robust to having pixel shift differences. |
Thanks. You are best. |
Closed by #470. Thanks so much for pushing this forwards @tkoyama010 🍻 |
🚀 Pull Request
Add a sample test using
pytest-pyvista
.Description
Once this sample has been discussed and approved, we will add other tests in subsequent PullRequests.
Reference: pytest-pyvista document (https://pytest.pyvista.org/)
Edit: The best way to try this test is to let the test draw a different figure and see if that results in an error.