test: add smoke tests for training and generation hot paths #24
Workflow file for this run
This file contains hidden or 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
| # Copyright (c) 2024-2026, 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. | |
| # --------------------------------------------------------------------------- | |
| # After Dependabot bumps a Python dependency in pyproject.toml, regenerate | |
| # uv.lock so that `make lock-check` passes in CI. | |
| # | |
| # Uses a PAT (secrets.PAT) to push the updated lockfile so that CI is | |
| # triggered automatically on the new commit. | |
| # --------------------------------------------------------------------------- | |
| name: "Dependabot: sync uv.lock" | |
| on: | |
| pull_request: | |
| branches: | |
| - main | |
| paths: | |
| - "pyproject.toml" | |
| defaults: | |
| run: | |
| shell: bash -x -e -u -o pipefail {0} | |
| jobs: | |
| sync-lock: | |
| name: Regenerate uv.lock | |
| if: github.actor == 'dependabot[bot]' | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: write | |
| steps: | |
| - uses: actions/checkout@v6 | |
| with: | |
| ref: ${{ github.head_ref }} | |
| token: ${{ secrets.PAT }} | |
| - name: Setup uv | |
| uses: astral-sh/setup-uv@v6 | |
| with: | |
| enable-cache: false | |
| - name: Regenerate lockfile | |
| run: uv lock | |
| - name: Commit and push if lockfile changed | |
| id: push | |
| run: | | |
| git config user.name "github-actions[bot]" | |
| git config user.email "41898282+github-actions[bot]@users.noreply.github.com" | |
| git add uv.lock | |
| if git diff --cached --quiet; then | |
| echo "uv.lock already up to date, nothing to commit." | |
| echo "changed=false" >> "$GITHUB_OUTPUT" | |
| else | |
| git commit --signoff -m "chore(deps): sync uv.lock [dependabot skip]" | |
| git push | |
| echo "changed=true" >> "$GITHUB_OUTPUT" | |
| fi |