Skip to content

Commit 4cd4c6f

Browse files
authored
ci: Update pyproject.toml with dependabot (#171)
Signed-off-by: oliver könig <okoenig@nvidia.com>
1 parent 31ece19 commit 4cd4c6f

File tree

3 files changed

+10
-15
lines changed

3 files changed

+10
-15
lines changed

.github/workflows/_update_dependencies.yml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ jobs:
3333
runs-on: ubuntu-latest
3434
outputs:
3535
source-branch: ${{ steps.merge-branch.outputs.source-branch }}
36-
bump-branch: bump-ci-container-${{ steps.ref.outputs.date }}
36+
bump-branch: bump-ci-container-${{ steps.ref.outputs.date }}-${{ steps.merge-branch.outputs.source-branch }}
3737
date: ${{ steps.ref.outputs.date }}
3838
steps:
3939
- uses: actions/checkout@v2
@@ -71,14 +71,14 @@ jobs:
7171
git push -u origin $SOURCE_BRANCH
7272
7373
mcore:
74-
uses: NVIDIA-NeMo/FW-CI-templates/.github/workflows/_bump_yamlfile.yml@v0.36.1
74+
uses: NVIDIA-NeMo/FW-CI-templates/.github/workflows/_bump_tomlfile.yml@v0.40.0
7575
needs: [update-branch]
7676
name: Bump Megatron-LM
7777
with:
7878
source-repository: NVIDIA/Megatron-LM
7979
source-ref: ${{ inputs.mcore-target-branch }}
80-
yaml-path: '."vcs-dependencies"."megatron-lm".ref'
81-
file: docker/manifest.json
80+
toml-path: tool.uv.sources.megatron-core.rev
81+
file: pyproject.toml
8282
base-branch: ${{ needs.update-branch.outputs.source-branch }}
8383
pr-branch: ${{ needs.update-branch.outputs.bump-branch }}
8484
pr-title: "chore(🤖): Bump dependencies (${{ needs.update-branch.outputs.date }})"
@@ -89,14 +89,14 @@ jobs:
8989
GPG_PASSPHRASE: ${{ secrets.SSH_PWD }}
9090

9191
nemo:
92-
uses: NVIDIA-NeMo/FW-CI-templates/.github/workflows/_bump_yamlfile.yml@v0.36.1
92+
uses: NVIDIA-NeMo/FW-CI-templates/.github/workflows/_bump_tomlfile.yml@v0.40.0
9393
needs: [update-branch, mcore]
9494
name: Bump NeMo
9595
with:
9696
source-repository: NVIDIA/NeMo
9797
source-ref: ${{ inputs.nemo-target-branch }}
98-
yaml-path: '."vcs-dependencies"."nemo".ref'
99-
file: docker/manifest.json
98+
toml-path: tool.uv.sources.nemo-toolkit.rev
99+
file: pyproject.toml
100100
base-branch: ${{ needs.update-branch.outputs.source-branch }}
101101
pr-branch: ${{ needs.update-branch.outputs.bump-branch }}
102102
pr-title: "chore(🤖): Bump dependencies (${{ needs.update-branch.outputs.date }})"
@@ -109,7 +109,7 @@ jobs:
109109
update-lockfile:
110110
environment: nemo-ci
111111
runs-on: linux-amd64-cpu16
112-
needs: [nemo]
112+
needs: [nemo, update-branch]
113113
steps:
114114
- name: Install Azure CLI
115115
run: curl -sL https://aka.ms/InstallAzureCLIDeb | sudo bash
@@ -139,7 +139,7 @@ jobs:
139139
- name: Upload lock file
140140
uses: actions/upload-artifact@v4
141141
with:
142-
name: lock-file
142+
name: lock-file-${{ needs.update-branch.outputs.bump-branch }}
143143
path: uv.lock
144144

145145
create-pr:
@@ -167,7 +167,7 @@ jobs:
167167
- name: Download lock file
168168
uses: actions/download-artifact@v4
169169
with:
170-
name: lock-file
170+
name: lock-file-${{ needs.update-branch.outputs.bump-branch }}
171171

172172
- name: Commit changes
173173
run: |

docker/Dockerfile.ci

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,6 @@ ENV UV_LINK_MODE=copy
3232
# Install all
3333
WORKDIR /workspace
3434
ARG INFERENCE_FRAMEWORK
35-
ARG NEMO_REF
36-
ARG MCORE_REF
3735
RUN --mount=type=bind,source=pyproject.toml,target=/workspace/pyproject.toml \
3836
--mount=type=bind,source=uv.lock,target=uv.lock \
3937
--mount=type=bind,source=nemo_export/__init__.py,target=/workspace/nemo_export/__init__.py \

docker/manifest.json

Lines changed: 0 additions & 3 deletions
This file was deleted.

0 commit comments

Comments
 (0)