Skip to content

Commit 2c0e9ad

Browse files
minor
Signed-off-by: Keval Morabia <28916987+kevalmorabia97@users.noreply.github.com>
1 parent 073ae64 commit 2c0e9ad

4 files changed

Lines changed: 34 additions & 8 deletions

File tree

.github/workflows/example_tests.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,12 @@ on:
66
# NOTE: paths cannot be used since push happens to copied PR and only latest commit to PR is used
77
schedule:
88
- cron: "0 0 * * *" # Nightly
9-
workflow_dispatch: # On-demand
9+
workflow_dispatch:
10+
# On-demand
11+
1012

11-
# Cancel previous runs if new commit is pushed to the same PR
1213
concurrency:
14+
# Cancel previous runs if new commit is pushed to the same PR
1315
group: ${{ github.workflow }}-${{ startsWith(github.ref, 'refs/heads/pull-request/') && github.ref || github.sha }}
1416
cancel-in-progress: true
1517

.github/workflows/gpu_tests.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,12 @@ on:
66
# NOTE: paths cannot be used since push happens to copied PR and only latest commit to PR is used
77
schedule:
88
- cron: "0 0 * * *" # Nightly
9-
workflow_dispatch: # On-demand
9+
workflow_dispatch:
10+
# On-demand
11+
1012

11-
# Cancel previous runs if new commit is pushed to the same PR
1213
concurrency:
14+
# Cancel previous runs if new commit is pushed to the same PR
1315
group: ${{ github.workflow }}-${{ startsWith(github.ref, 'refs/heads/pull-request/') && github.ref || github.sha }}
1416
cancel-in-progress: true
1517

@@ -101,8 +103,7 @@ jobs:
101103
COVERAGE_PROCESS_START: ${{ github.workspace }}/pyproject.toml
102104
COVERAGE_FILE: ${{ github.workspace }}/.coverage
103105
run: |
104-
pip install nox
105-
nox -s ${{ matrix.example }}
106+
python -m pip install nox && nox -s ${{ matrix.example }}
106107
- name: Upload GPU coverage to Codecov
107108
uses: codecov/codecov-action@v5
108109
with:

.github/workflows/unit_tests.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,12 @@ on:
1515
- "tools/launcher/**"
1616
schedule:
1717
- cron: "0 0 * * *" # Nightly
18-
workflow_dispatch: # On-demand
18+
workflow_dispatch:
19+
# On-demand
20+
1921

20-
# Cancel previous runs if new commit is pushed
2122
concurrency:
23+
# Cancel previous runs if new commit is pushed
2224
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}
2325
cancel-in-progress: true
2426

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# SPDX-FileCopyrightText: Copyright (c) 2024 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
2+
# SPDX-License-Identifier: Apache-2.0
3+
#
4+
# Licensed under the Apache License, Version 2.0 (the "License");
5+
# you may not use this file except in compliance with the License.
6+
# You may obtain a copy of the License at
7+
#
8+
# http://www.apache.org/licenses/LICENSE-2.0
9+
#
10+
# Unless required by applicable law or agreed to in writing, software
11+
# distributed under the License is distributed on an "AS IS" BASIS,
12+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
# See the License for the specific language governing permissions and
14+
# limitations under the License.
15+
16+
import platform
17+
18+
19+
# `Compiler: cl is not found` on Windows
20+
def pytest_ignore_collect(collection_path, config):
21+
return platform.system() == "Windows"

0 commit comments

Comments
 (0)