From 63c43daa9789b5514690961614be662402c36e7e Mon Sep 17 00:00:00 2001 From: Alok Joshi Date: Mon, 8 Dec 2025 11:23:19 +0530 Subject: [PATCH 1/9] ci - add a workflow for CI and add linting Signed-off-by: Alok Joshi --- .github/workflows/lint.yaml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 .github/workflows/lint.yaml diff --git a/.github/workflows/lint.yaml b/.github/workflows/lint.yaml new file mode 100644 index 0000000..688e662 --- /dev/null +++ b/.github/workflows/lint.yaml @@ -0,0 +1,17 @@ +name: "CI" + +on: + pull_request: + types: [opened, reopened] + push: + branches: + - "main" + - "aljoshi/*" #TODO: Remove once PR is merged + +jobs: + lint: + steps: + - uses: actions/checkout@v5 + - run: | + pip install hatch + hatch run lint:check From a01b29c1e5e88409988c4ff311d632f2cd544163 Mon Sep 17 00:00:00 2001 From: Alok Joshi Date: Mon, 8 Dec 2025 11:26:45 +0530 Subject: [PATCH 2/9] ci - add runner OS Signed-off-by: Alok Joshi --- .github/workflows/lint.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/lint.yaml b/.github/workflows/lint.yaml index 688e662..00c80ee 100644 --- a/.github/workflows/lint.yaml +++ b/.github/workflows/lint.yaml @@ -10,6 +10,7 @@ on: jobs: lint: + runs-on: ubuntu-latest steps: - uses: actions/checkout@v5 - run: | From 452d77c2028976a61876f5ef6e86faddd1023c66 Mon Sep 17 00:00:00 2001 From: Alok Joshi Date: Mon, 8 Dec 2025 12:22:25 +0530 Subject: [PATCH 3/9] ci - remove CI for branches other than main Signed-off-by: Alok Joshi --- .github/workflows/lint.yaml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/lint.yaml b/.github/workflows/lint.yaml index 00c80ee..17f74b8 100644 --- a/.github/workflows/lint.yaml +++ b/.github/workflows/lint.yaml @@ -6,7 +6,6 @@ on: push: branches: - "main" - - "aljoshi/*" #TODO: Remove once PR is merged jobs: lint: From 5e05fa089259d2ef91094e8f295997f03159e176 Mon Sep 17 00:00:00 2001 From: Alok Joshi Date: Mon, 8 Dec 2025 12:30:24 +0530 Subject: [PATCH 4/9] ci - enable lint job for PR Signed-off-by: Alok Joshi --- .github/workflows/lint.yaml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/lint.yaml b/.github/workflows/lint.yaml index 17f74b8..4285e2e 100644 --- a/.github/workflows/lint.yaml +++ b/.github/workflows/lint.yaml @@ -2,7 +2,6 @@ name: "CI" on: pull_request: - types: [opened, reopened] push: branches: - "main" From 9aee59e238bfb3642b79d6833f61361d1da123c5 Mon Sep 17 00:00:00 2001 From: Alok Joshi Date: Mon, 8 Dec 2025 12:32:41 +0530 Subject: [PATCH 5/9] ci - add doc build job Signed-off-by: Alok Joshi --- .github/workflows/lint.yaml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.github/workflows/lint.yaml b/.github/workflows/lint.yaml index 4285e2e..6bca864 100644 --- a/.github/workflows/lint.yaml +++ b/.github/workflows/lint.yaml @@ -14,3 +14,11 @@ jobs: - run: | pip install hatch hatch run lint:check + + undeployed-docs: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v5 + - run: | + pip install hatch + hatch run docs:build From b4a9630ba898370c38a89b4d367e5f3b3a8e04dd Mon Sep 17 00:00:00 2001 From: Alok Joshi Date: Mon, 8 Dec 2025 14:04:20 +0530 Subject: [PATCH 6/9] nit - change name of job Signed-off-by: Alok Joshi --- .github/workflows/lint.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/lint.yaml b/.github/workflows/lint.yaml index 6bca864..46b5057 100644 --- a/.github/workflows/lint.yaml +++ b/.github/workflows/lint.yaml @@ -15,7 +15,7 @@ jobs: pip install hatch hatch run lint:check - undeployed-docs: + build-docs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v5 From 8236418fe8399a90ff8b6c9279b5ae329dfecc05 Mon Sep 17 00:00:00 2001 From: Alok Joshi Date: Mon, 8 Dec 2025 14:23:43 +0530 Subject: [PATCH 7/9] ci - rename filename to something more generic Signed-off-by: Alok Joshi --- .github/workflows/{lint.yaml => ci.yaml} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename .github/workflows/{lint.yaml => ci.yaml} (100%) diff --git a/.github/workflows/lint.yaml b/.github/workflows/ci.yaml similarity index 100% rename from .github/workflows/lint.yaml rename to .github/workflows/ci.yaml From 4cb7e074dbe8e441cc63df40adbc72ae720bda3f Mon Sep 17 00:00:00 2001 From: Alok Joshi Date: Mon, 8 Dec 2025 14:43:53 +0530 Subject: [PATCH 8/9] ci - Ensure python versions >=3.10 Signed-off-by: Alok Joshi --- .github/workflows/ci.yaml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 46b5057..47666e1 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -11,6 +11,9 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v5 + - uses: actions/setup-python@v6 + with: + python-version: '3.10' - run: | pip install hatch hatch run lint:check @@ -19,6 +22,9 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v5 + - uses: actions/setup-python@v6 + with: + python-version: '3.10' - run: | pip install hatch hatch run docs:build From 388bfd7a33eb43bd4a3ac3efdb99be95fa28ee6f Mon Sep 17 00:00:00 2001 From: Alok Joshi Date: Mon, 8 Dec 2025 14:56:08 +0530 Subject: [PATCH 9/9] ci - add license header and copyright header --- .github/workflows/ci.yaml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 47666e1..57b6922 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +# SPDX-License-Identifier: Apache-2.0 + name: "CI" on: