-
Hello, First, thanks for the action ! While investigating the possibility of using cibuildwheel and GitHub Actions for the cmake package, I noticed that the old CircleCI job had a specific job to run Given that gh-action-pypi-publish was already included in the new workflow, it seemed quite a duplicate effort to add yet another job to do that. Proposals:
I implemented the I can contribute pull requests if there's some interest. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
That's an interesting suggestion but I'm worried about the feature creep. The main purpose of this action is to publish stuff and the pre-check is a small addition. A dry run would shift that goal, I think.
This one is probably more reasonable for us. I'd probably accept such a PR. OTOH it sounds like it'd be a good default just to have it strict unconditionally.
I see why you may feel like that but I prefer having a separate linting/verification job/task. There are a few reasons to do so. First, you most likely want to be able to run the same check locally, so you'd already have a tox env or something similar to do that. Then, if you follow the recommendation of first building the dists, then testing them, and only then publishing, you could run such a check activity in parallel with tests rather than later. And finally, from the UX/DX point of view, it'd nice to be able to see a separate job with the metadata checks and immediately know what's failing rather than having to dig into a specific job step's log. |
Beta Was this translation helpful? Give feedback.
-
That's exactly what I was suggesting with "So probably a separate job that checks just this, as was done on CircleCI.
That's not supported by cibuildwheel yet
There's "one workflow" for sdist and "one workflow" for wheels. cibuildwheel takes care of running tests on the built wheels so everything is tested: built wheels, installing from sdist, installed sdist. |
Beta Was this translation helpful? Give feedback.
That's an interesting suggestion but I'm worried about the feature creep. The main purpose of this action is to publish stuff and the pre-check is a small addition. A dry run would shift that goal, I think.
This one is probably more reasonable for us. I'd probably accept such a PR. OTOH it sounds like it'd be a good default just to have it strict unconditionally.