CadQuery / sphinxcadquery

An extension to visualize CadQuery 3D files in your Sphinx documentation
BSD 3-Clause "New" or "Revised" License
13 stars 4 forks source link

added minimal pytest with example rst file #22

Closed shimwell closed 3 years ago

shimwell commented 3 years ago

Thanks for making this super useful package

I have checked the other PR #20 using this minimal pytest code.

Perhaps this could be a start for testing

Here you can see the tests fail on the current master branch and pass on the branch with the fix for sphinx v4

Screenshot from 2021-05-10 16-06-48

Peque commented 3 years ago

Good initiative! :blush:

A couple of comments:

Also, it is nice to have tests to run locally, but it is even better to have them running in CI! (i.e.: with Travis or GitHub Actions). I have another repo that you may check if you feel brave enough to go that extra mile. :stuck_out_tongue:

https://github.com/markdownreveal/markdownreveal

(check out the tox.ini file and .travis.yml file if you feel interested)

shimwell commented 3 years ago

Yep I can give that a go.

Might even get a git squash out of me at the end :stuck_out_tongue_winking_eye:

I believe GitHub Actions don't trigger from forks but I can get it most of the way there.

shimwell commented 3 years ago

Appears to be working over on my fork (where the GH actions run) https://github.com/Shimwell/sphinxcadquery/actions/runs/829495457

shimwell commented 3 years ago

Wondering if you have the "Squash and merge" option on this on a pull request

https://i.stack.imgur.com/8t1OJ.png

Peque commented 3 years ago

@Shimwell Yes, I do have the option to squash the commits myself when merging PRs.

When I do that, I become the committer, while you keep the authorship of the commit. I don't mind much, but I would rather leave your name as the committer too, if you are willing to do the clean-up-before-merge yourself. :stuck_out_tongue_winking_eye:

shimwell commented 3 years ago

Yep I can make these changes, thanks for the suggestions

Peque commented 3 years ago

Closing in favor of https://github.com/Peque/sphinxcadquery/pull/27.