@tduncan / Nvidia-Optimization-Stack-VLLM Mirror · read-only / commits / 731aec5be7
Fork 0

A high-throughput and memory-efficient inference and serving engine for LLMs

Mirrored from https://github.com/tduncan-lum/Nvidia-Optimization-Stack---VLLM.git

Synced Nov 16, 08:15 UTC

[CI/Build] Limit github CI jobs based on files changed (#9928)

Signed-off-by: Russell Bryant <rbryant@redhat.com>

Russell Bryant committed Nov 5, 2024 at 13:30 UTC 731aec5be713a89dccf1d7106290da17621af816
5 files changed +45 -5
.github/workflows/actionlint.yml
+2
@@ -6,12 +6,14 @@ on:
6 paths:
7 - '.github/workflows/*.ya?ml'
8 - '.github/workflows/actionlint.*'
9 + - '.github/workflows/matchers/actionlint.json'
10 pull_request:
11 branches:
12 - "main"
13 paths:
14 - '.github/workflows/*.ya?ml'
15 - '.github/workflows/actionlint.*'
16 + - '.github/workflows/matchers/actionlint.json'
17
18 env:
19 LC_ALL: en_US.UTF-8
.github/workflows/clang-format.yml
+12
@@ -6,9 +6,21 @@ on:
6 push:
7 branches:
8 - main
9 + paths:
10 + - '**/*.h'
11 + - '**/*.cpp'
12 + - '**/*.cu'
13 + - '**/*.cuh'
14 + - '.github/workflows/clang-format.yml'
15 pull_request:
16 branches:
17 - main
18 + paths:
19 + - '**/*.h'
20 + - '**/*.cpp'
21 + - '**/*.cu'
22 + - '**/*.cuh'
23 + - '.github/workflows/clang-format.yml'
24
25 jobs:
26 clang-format:
.github/workflows/mypy.yaml
+10
@@ -6,9 +6,19 @@ on:
6 push:
7 branches:
8 - main
9 + paths:
10 + - '**/*.py'
11 + - '.github/workflows/mypy.yaml'
12 + - 'tools/mypy.sh'
13 + - 'pyproject.toml'
14 pull_request:
15 branches:
16 - main
17 + paths:
18 + - '**/*.py'
19 + - '.github/workflows/mypy.yaml'
20 + - 'tools/mypy.sh'
21 + - 'pyproject.toml'
22
23 jobs:
24 mypy:
.github/workflows/ruff.yml
+13 -4
@@ -6,16 +6,28 @@ on:
6 push:
7 branches:
8 - main
9 + paths:
10 + - "**/*.py"
11 + - pyproject.toml
12 + - requirements-lint.txt
13 + - .github/workflows/matchers/ruff.json
14 + - .github/workflows/ruff.yml
15 pull_request:
16 branches:
17 - main
18 + paths:
19 + - "**/*.py"
20 + - pyproject.toml
21 + - requirements-lint.txt
22 + - .github/workflows/matchers/ruff.json
23 + - .github/workflows/ruff.yml
24
25 jobs:
26 ruff:
27 runs-on: ubuntu-latest
28 strategy:
29 matrix:
18 - python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
30 + python-version: ["3.12"]
31 steps:
32 - uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4.2.1
33 - name: Set up Python ${{ matrix.python-version }}
@@ -30,9 +42,6 @@ jobs:
42 run: |
43 echo "::add-matcher::.github/workflows/matchers/ruff.json"
44 ruff check --output-format github .
33 - - name: Spelling check with codespell
34 - run: |
35 - codespell --toml pyproject.toml
45 - name: Run isort
46 run: |
47 isort . --check-only
.github/workflows/yapf.yml
+8 -1
@@ -6,15 +6,22 @@ on:
6 push:
7 branches:
8 - main
9 + paths:
10 + - "**/*.py"
11 + - .github/workflows/yapf.yml
12 pull_request:
13 branches:
14 - main
15 + paths:
16 + - "**/*.py"
17 + - .github/workflows/yapf.yml
18 +
19 jobs:
20 yapf:
21 runs-on: ubuntu-latest
22 strategy:
23 matrix:
17 - python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
24 + python-version: ["3.12"]
25 steps:
26 - uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4.2.1
27 - name: Set up Python ${{ matrix.python-version }}