-
Notifications
You must be signed in to change notification settings - Fork 37
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
ci: Add build-test-publish-wheel
workflow
#114
Open
ko3n1g
wants to merge
11
commits into
main
Choose a base branch
from
ko3n1g/ci/build-test-publish-wheel
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
65fa80e
ci: Add `build-test-publish-wheel` workflow
ko3n1g 85b419c
fixes
ko3n1g dc63af2
build on public infra
ko3n1g 6d4ca20
fix
ko3n1g 789c932
f
ko3n1g 51cbd3b
f
ko3n1g 61d5b2b
f
ko3n1g bab83c7
f
ko3n1g 5f94c3b
f
ko3n1g d873a7f
f
ko3n1g 082f3dd
f
ko3n1g File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
# Copyright (c) 2020-2021, NVIDIA CORPORATION. | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
|
||
name: Build, test, and publish a PyPi wheel (to testpypi) | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
- 'r**' | ||
pull_request: | ||
|
||
defaults: | ||
run: | ||
shell: bash -x -e -u -o pipefail {0} | ||
|
||
jobs: | ||
build-test-publish-wheel: | ||
uses: NVIDIA/NeMo-FW-CI-templates/.github/workflows/_build_test_publish_wheel.yml@ko3n1g/ci/build-wheel-public-infra | ||
with: | ||
dry-run: true | ||
python-package: nemo_run | ||
base_dir: src | ||
environment: public | ||
secrets: | ||
TWINE_USERNAME: ${{ secrets.TWINE_USERNAME }} | ||
TWINE_PASSWORD: ${{ secrets.TWINE_PASSWORD }} | ||
SLACK_WEBHOOK_ADMIN: ${{ secrets.SLACK_WEBHOOK_ADMIN }} | ||
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
# Copyright (c) 2023, NVIDIA CORPORATION. All rights reserved. | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
|
||
|
||
MAJOR = 0 | ||
MINOR = 0 | ||
PATCH = 1 | ||
PRE_RELEASE = "rc0" | ||
DEV = "dev1" | ||
|
||
# Use the following formatting: (major, minor, patch, pre-release) | ||
VERSION = (MAJOR, MINOR, PATCH, PRE_RELEASE, DEV) | ||
|
||
__shortversion__ = ".".join(map(str, VERSION[:3])) | ||
__version__ = __shortversion__ + VERSION[3] + "." + ".".join(VERSION[4:]) | ||
|
||
__package_name__ = "nemo_run" | ||
__contact_names__ = "NVIDIA" | ||
__contact_emails__ = "[email protected]" | ||
__repository_url__ = "https://github.com/NVIDIA/NeMo-Run" | ||
__download_url__ = "https://github.com/NVIDIA/NeMo-Run/releases" | ||
__description__ = ( | ||
"NeMo-Run - A powerful tool designed to streamline the configuration, execution and management of Machine Learning experiments across various computing environments." | ||
) | ||
__license__ = "Apache2" | ||
__keywords__ = "deep learning, machine learning, gpu, NLP, NeMo, nvidia, pytorch, torch, language, preprocessing, LLM, large language model" |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We have hatch's vcs for versioning currently. See here - https://github.com/NVIDIA/NeMo-Run/blob/main/pyproject.toml#L118-L122.
Can you remove it if the versions are going to be manually maintained?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh that's sad, hatch seems like a cool tool. But I can't see how it fits into Nemo's release cycle. Because both pre-release and releases are rather github-workflow than some-other-cli-tool driven. I'd remove hatch for now