Skip to content

Add initial CI

Add initial CI #1

Workflow file for this run

# Copyright (c) 2025, NVIDIA CORPORATION. All rights reserved.

Check failure on line 1 in .github/workflows/cicd-main.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/cicd-main.yml

Invalid workflow file

(Line: 60, Col: 25): Job 'cicd-unit-tests' depends on unknown job 'cicd-wait-in-queue'.
#
# 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: CICD NeMo
on:
pull_request:
branches:
- main
- r**
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}-${{ github.event.label.name || 'main' }}-${{ github.event_name }}
cancel-in-progress: true
jobs:
pre-flight:
uses: NVIDIA-NeMo/FW-CI-templates/.github/workflows/_cicd_preflight.yml@v0.64.2
lint-check:
name: Lint check
runs-on: ubuntu-latest
needs: [pre-flight]
if: |
(
needs.pre-flight.outputs.is_deployment_workflow == 'false'
&& needs.pre-flight.outputs.is_ci_workload == 'true'
) || (
needs.pre-flight.outputs.is_deployment_workflow == 'false'
&& needs.pre-flight.outputs.is_ci_workload == 'false'
&& needs.pre-flight.outputs.docs_only == 'false'
)
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Check lint
run: |
pip install pre-commit==3.6.0
pre-commit install
pre-commit run --all-files --show-diff-on-failure --color=always
cicd-unit-tests:
if: |
(
success()
|| needs.pre-flight.outputs.is_ci_workload == 'true'
|| needs.pre-flight.outputs.force_run_all == 'true'
)
&& !cancelled()
needs: [pre-flight, cicd-wait-in-queue]
runs-on: self-hosted-nemo
name: Launch_Unit_Tests
environment: nemo-ci
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Run tests
run: |
uv run --all-extras pytest --cov=src/nemotron tests