diff --git a/.github/workflows/gpu_tests.yml b/.github/workflows/gpu_tests.yml index 89c3d692..2665a600 100644 --- a/.github/workflows/gpu_tests.yml +++ b/.github/workflows/gpu_tests.yml @@ -8,6 +8,7 @@ on: # - ".github/workflows/gpu_tests.yml" # - "modelopt/**" # - "tests/gpu/**" + # - "pyproject.toml" # - "setup.py" # - "tox.ini" diff --git a/.github/workflows/multi_version_unit_tests.yml b/.github/workflows/multi_version_unit_tests.yml index bb2bfa39..def4b392 100644 --- a/.github/workflows/multi_version_unit_tests.yml +++ b/.github/workflows/multi_version_unit_tests.yml @@ -8,6 +8,7 @@ on: - ".github/workflows/multi_version_unit_tests.yml" - "modelopt/**" - "tests/unit/**" + - "pyproject.toml" - "setup.py" - "tox.ini" diff --git a/.github/workflows/pages.yml b/.github/workflows/pages.yml index 4d4df33b..7b76bf75 100644 --- a/.github/workflows/pages.yml +++ b/.github/workflows/pages.yml @@ -6,9 +6,9 @@ on: push: branches: [main, release/*] -# Cancel previous runs if new commit is pushed to the same PR +# Cancel previous runs if new commit is pushed concurrency: - group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.run_id }} + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} cancel-in-progress: true # Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages diff --git a/.github/workflows/partial_unit_tests.yml b/.github/workflows/partial_unit_tests.yml index 7895cda1..c3cb5ce1 100644 --- a/.github/workflows/partial_unit_tests.yml +++ b/.github/workflows/partial_unit_tests.yml @@ -7,6 +7,7 @@ on: - ".github/workflows/partial_unit_tests.yml" - "modelopt/**" - "tests/unit/**" + - "pyproject.toml" - "setup.py" - "tox.ini" diff --git a/.github/workflows/unit_tests.yml b/.github/workflows/unit_tests.yml index c96a2a1c..9fcc6c87 100644 --- a/.github/workflows/unit_tests.yml +++ b/.github/workflows/unit_tests.yml @@ -7,12 +7,22 @@ on: - ".github/workflows/unit_tests.yml" - "modelopt/**" - "tests/unit/**" + - "pyproject.toml" + - "setup.py" + - "tox.ini" + push: + branches: [main, release/*] + paths: + - ".github/workflows/unit_tests.yml" + - "modelopt/**" + - "tests/unit/**" + - "pyproject.toml" - "setup.py" - "tox.ini" -# Cancel previous runs if new commit is pushed to the same PR +# Cancel previous runs if new commit is pushed concurrency: - group: ${{ github.workflow }}-${{ github.event.pull_request.number }} + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} cancel-in-progress: true jobs: @@ -33,6 +43,7 @@ jobs: fail_ci_if_error: true verbose: true unit-tests-windows: + if: github.event_name == 'pull_request' runs-on: windows-latest timeout-minutes: 30 steps: diff --git a/README.md b/README.md index 5ddf9afa..24090825 100644 --- a/README.md +++ b/README.md @@ -7,7 +7,6 @@ [![Documentation](https://img.shields.io/badge/Documentation-latest-brightgreen.svg?style=flat)](https://nvidia.github.io/TensorRT-Model-Optimizer) [![version](https://img.shields.io/pypi/v/nvidia-modelopt?label=Release)](https://pypi.org/project/nvidia-modelopt/) [![license](https://img.shields.io/badge/License-Apache%202.0-blue)](./LICENSE) -[![codecov](https://codecov.io/github/NVIDIA/TensorRT-Model-Optimizer/graph/badge.svg?token=r1bw4LC1WH)](https://codecov.io/github/NVIDIA/TensorRT-Model-Optimizer) [Examples](#examples) | [Documentation](https://nvidia.github.io/TensorRT-Model-Optimizer) |