Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
OpenDAS
vllm_cscc
Commits
731aec5b
Unverified
Commit
731aec5b
authored
Nov 05, 2024
by
Russell Bryant
Committed by
GitHub
Nov 05, 2024
Browse files
[CI/Build] Limit github CI jobs based on files changed (#9928)
Signed-off-by:
Russell Bryant
<
rbryant@redhat.com
>
parent
09d35503
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
45 additions
and
5 deletions
+45
-5
.github/workflows/actionlint.yml
.github/workflows/actionlint.yml
+2
-0
.github/workflows/clang-format.yml
.github/workflows/clang-format.yml
+12
-0
.github/workflows/mypy.yaml
.github/workflows/mypy.yaml
+10
-0
.github/workflows/ruff.yml
.github/workflows/ruff.yml
+13
-4
.github/workflows/yapf.yml
.github/workflows/yapf.yml
+8
-1
No files found.
.github/workflows/actionlint.yml
View file @
731aec5b
...
...
@@ -6,12 +6,14 @@ on:
paths
:
-
'
.github/workflows/*.ya?ml'
-
'
.github/workflows/actionlint.*'
-
'
.github/workflows/matchers/actionlint.json'
pull_request
:
branches
:
-
"
main"
paths
:
-
'
.github/workflows/*.ya?ml'
-
'
.github/workflows/actionlint.*'
-
'
.github/workflows/matchers/actionlint.json'
env
:
LC_ALL
:
en_US.UTF-8
...
...
.github/workflows/clang-format.yml
View file @
731aec5b
...
...
@@ -6,9 +6,21 @@ on:
push
:
branches
:
-
main
paths
:
-
'
**/*.h'
-
'
**/*.cpp'
-
'
**/*.cu'
-
'
**/*.cuh'
-
'
.github/workflows/clang-format.yml'
pull_request
:
branches
:
-
main
paths
:
-
'
**/*.h'
-
'
**/*.cpp'
-
'
**/*.cu'
-
'
**/*.cuh'
-
'
.github/workflows/clang-format.yml'
jobs
:
clang-format
:
...
...
.github/workflows/mypy.yaml
View file @
731aec5b
...
...
@@ -6,9 +6,19 @@ on:
push
:
branches
:
-
main
paths
:
-
'
**/*.py'
-
'
.github/workflows/mypy.yaml'
-
'
tools/mypy.sh'
-
'
pyproject.toml'
pull_request
:
branches
:
-
main
paths
:
-
'
**/*.py'
-
'
.github/workflows/mypy.yaml'
-
'
tools/mypy.sh'
-
'
pyproject.toml'
jobs
:
mypy
:
...
...
.github/workflows/ruff.yml
View file @
731aec5b
...
...
@@ -6,16 +6,28 @@ on:
push
:
branches
:
-
main
paths
:
-
"
**/*.py"
-
pyproject.toml
-
requirements-lint.txt
-
.github/workflows/matchers/ruff.json
-
.github/workflows/ruff.yml
pull_request
:
branches
:
-
main
paths
:
-
"
**/*.py"
-
pyproject.toml
-
requirements-lint.txt
-
.github/workflows/matchers/ruff.json
-
.github/workflows/ruff.yml
jobs
:
ruff
:
runs-on
:
ubuntu-latest
strategy
:
matrix
:
python-version
:
[
"
3.8"
,
"
3.9"
,
"
3.10"
,
"
3.11"
,
"
3.12"
]
python-version
:
[
"
3.12"
]
steps
:
-
uses
:
actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871
# v4.2.1
-
name
:
Set up Python ${{ matrix.python-version }}
...
...
@@ -30,9 +42,6 @@ jobs:
run
:
|
echo "::add-matcher::.github/workflows/matchers/ruff.json"
ruff check --output-format github .
-
name
:
Spelling check with codespell
run
:
|
codespell --toml pyproject.toml
-
name
:
Run isort
run
:
|
isort . --check-only
.github/workflows/yapf.yml
View file @
731aec5b
...
...
@@ -6,15 +6,22 @@ on:
push
:
branches
:
-
main
paths
:
-
"
**/*.py"
-
.github/workflows/yapf.yml
pull_request
:
branches
:
-
main
paths
:
-
"
**/*.py"
-
.github/workflows/yapf.yml
jobs
:
yapf
:
runs-on
:
ubuntu-latest
strategy
:
matrix
:
python-version
:
[
"
3.8"
,
"
3.9"
,
"
3.10"
,
"
3.11"
,
"
3.12"
]
python-version
:
[
"
3.12"
]
steps
:
-
uses
:
actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871
# v4.2.1
-
name
:
Set up Python ${{ matrix.python-version }}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment