Use build-and-inspect-python-package action#10722
Use build-and-inspect-python-package action#10722nicoddemus merged 7 commits intopytest-dev:mainfrom
Conversation
This uses https://github.com/hynek/build-and-inspect-python-package to ensure our package is correct, both during testing and deploy,
RonnyPfannschmidt
left a comment
There was a problem hiding this comment.
Most lovely
I need to adopt this to my stuff now, it's awesome
Thanks to @hynek for providing
| run: | | ||
| python -m build | ||
| - name: Build and Check Package | ||
| uses: hynek/[email protected] |
There was a problem hiding this comment.
Actually I'm not entirely sure that this will produce the packages in the standard location, so the Publish package to PyPI will be able to pick them up.
Looking at the action code, it builds the packages in a temporary directory: https://github.com/hynek/build-and-inspect-python-package/blob/0b1716730c334a22b313808557b14b6190896bc3/action.yml#L40
I will have to test this out in a separate repository before being confident this will work.
There was a problem hiding this comment.
FTR you can't access them from other actions (like the upload action) because it's under /tmp. Use a download-artifact like here (you may be also able to cp -a them I guess).
There was a problem hiding this comment.
Yeah, thanks, that's what I did here: pytest-dev/pytest-mock#343
There was a problem hiding this comment.
Tested the same approach in pytest-dev/pytest-forked#82 and it works well. 👍
This uses https://github.com/hynek/build-and-inspect-python-package to ensure our package is correct, both during testing and deploy,
[7.2.x] Use build-and-inspect-python-package action (#10722)
This uses https://github.com/hynek/build-and-inspect-python-package to ensure our package is correct, both during testing and deploy.
Also include option to cancel running jobs when new commits for the same branch are pushed.