-
Notifications
You must be signed in to change notification settings - Fork 31
run package uploads in python slim containers #586
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
Changes from all commits
2f33ba1
8b390aa
1aca284
0acff9b
c395258
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -79,11 +79,46 @@ jobs: | |
| container: | ||
| # CUDA toolkit version of the container is irrelevant in the publish step. | ||
| # This just uploads already-built wheels to remote storage. | ||
| image: "rapidsai/ci-wheel:26.08-latest" # zizmor: ignore[unpinned-images] | ||
| image: "python:3.14-slim" | ||
| env: | ||
| RAPIDS_BUILD_TYPE: ${{ inputs.build_type }} | ||
| steps: | ||
|
|
||
| - name: Setup proxy cache | ||
| uses: nv-gha-runners/setup-proxy-cache@main | ||
| continue-on-error: true | ||
| with: | ||
| enable-apt: true | ||
|
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Now that code in this workflow runs |
||
|
|
||
| - name: Install tools | ||
| run: | | ||
| # install tools needed to bootstrap others | ||
| apt-get update | ||
| apt-get install -y --no-install-recommends \ | ||
| curl \ | ||
| git | ||
|
|
||
| # install gha-tools | ||
| git clone --depth 1 https://github.com/rapidsai/gha-tools /tmp/gha-tools | ||
| echo "/tmp/gha-tools/tools" >> "${GITHUB_PATH}" | ||
| export PATH="/tmp/gha-tools/tools:${PATH}" | ||
|
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
|
|
||
| # set up source for latest 'gh' releases | ||
| curl -fsSL https://cli.github.com/packages/githubcli-archive-keyring.gpg | dd of=/usr/share/keyrings/githubcli-archive-keyring.gpg | ||
| chmod go+r /usr/share/keyrings/githubcli-archive-keyring.gpg | ||
| echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/githubcli-archive-keyring.gpg] https://cli.github.com/packages stable main" | tee /etc/apt/sources.list.d/github-cli.list | ||
|
|
||
| # install tools with system package manager | ||
| apt-get update | ||
| apt-get install -y --no-install-recommends \ | ||
| gh \ | ||
| jq | ||
|
|
||
| # anaconda client (for 'rapids-upload-to-anaconda-github') | ||
| rapids-pip-retry install \ | ||
| --prefer-binary \ | ||
| 'anaconda-client>=1.13.1' | ||
|
|
||
| - name: Standardize repository information | ||
| uses: rapidsai/shared-actions/rapids-github-info@main | ||
| with: | ||
|
|
@@ -99,11 +134,7 @@ jobs: | |
| # checking '/rate_limit | jq .' should not itself count against any rate limits. | ||
| - name: Check GitHub API rate limits | ||
| run: | | ||
| if ! type gh >/dev/null; then | ||
| echo "'gh' CLI is not installed... skipping rate-limits check" | ||
| else | ||
| gh api /rate_limit | jq . | ||
| fi | ||
| gh api /rate_limit | jq . | ||
|
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We're now explicitly installing |
||
| env: | ||
| GH_TOKEN: ${{ github.token }} | ||
|
|
||
|
|
@@ -140,7 +171,7 @@ jobs: | |
| - name: Publish the downloaded wheels to PyPI | ||
| if: ${{ inputs.publish_to_pypi && steps.check_if_release.outputs.is_release_build == 'true' }} | ||
| run: | | ||
| python3 -m pip install twine | ||
| python3 -m pip install 'twine>=6.2.0' | ||
| python3 -m twine upload -u __token__ "${UPLOAD_DIR}"/* | ||
| env: | ||
| UPLOAD_DIR: ${{ steps.download_wheels.outputs.package_upload_dir }} | ||
|
|
||
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 shouldn't meaningfully be impacted by Python version here, as long as it's an officially-supported version.
I chose not to use
python:latesthere to reduce the risk of these builds failing if:latestbecomes (for example)3.16.0rc1and there aren't yet compatible wheels from some dependencies wepip install.