Skip to content
This repository has been archived by the owner on Oct 11, 2024. It is now read-only.

upload RELEASE wheel to pypi.org #361

Merged
merged 8 commits into from
Jul 10, 2024
Merged

Conversation

derekk-nm
Copy link

Besides uploading all generated assets to our NeuralMagic pypi server, we also want to push generated wheels to the external pypi.org server for RELEASE versions only.

The structure of the workflows doesn't allow pre-testing of these changes, since they should only apply when wf_category is "RELEASE". Discussing w/ @andy-neuma , we'll just have to see if it fails/succeeds when we're ready to release.

passing the workflow category and wheel file name to nm-upload-assets-to-gcp.yml workflow so that they can be used by the publish_whl action.
@derekk-nm
Copy link
Author

@andy-neuma , I'm not sure that the name of the wheel as passed to nm-upload-assets-to-gcp.yml will work in there. Does it need some path, or some other context to find the file?

.github/workflows/nm-upload-assets-to-gcp.yml Outdated Show resolved Hide resolved
.github/workflows/nm-upload-assets-to-gcp.yml Outdated Show resolved Hide resolved
.github/workflows/nm-upload-assets-to-gcp.yml Show resolved Hide resolved
Copy link
Member

@andy-neuma andy-neuma left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good once you address the comments. thanks

.github/workflows/nm-upload-assets-to-gcp.yml Show resolved Hide resolved
.github/workflows/nm-upload-assets-to-gcp.yml Outdated Show resolved Hide resolved
derekk-nm added 2 commits July 9, 2024 15:59
- refactor code from nm-cp-assets that gets wheel and tar.gz files into a new action that can be used for that and our nm-upload-assets-to-gcp.yml workflow
- correct syntax in the if statement
- use nm-actions @v1.0.0
andy-neuma and others added 4 commits July 10, 2024 11:46
SUMMARY:
* updated "build test" to accept an array of benchmarking labels
* updated "remote push" and "nightly" workflows to include benchmarking
on h100's
* adjusted docker job to have same criteria as upload job. did this
since upload could fail, but for auth reasons and this shouldn't stop us
from push docker.

TEST PLAN:
runs on remote push

---------

Co-authored-by: andy-neuma <[email protected]>
- refactor code from nm-cp-assets that gets wheel and tar.gz files into a new action that can be used for that and our nm-upload-assets-to-gcp.yml workflow
- correct syntax in the if statement
- use nm-actions @v1.0.0
remove an extra "whl" arg.
rename workflow
@derekk-nm derekk-nm merged commit 52844c0 into main Jul 10, 2024
14 checks passed
@derekk-nm derekk-nm deleted the dmk/upload-wheel-to-external-pypi branch July 10, 2024 12:12
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants