forked from AliceO2Group/O2DPG
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'AliceO2Group:master' into master
- Loading branch information
Showing
67 changed files
with
1,083 additions
and
518 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
--- | ||
name: Apply requested async label | ||
|
||
'on': | ||
issue_comment: | ||
types: | ||
- created | ||
- edited | ||
|
||
permissions: {} | ||
|
||
jobs: | ||
apply_async_labels: | ||
name: Apply requested async label | ||
uses: alisw/ali-bot/.github/workflows/async-auto-label.yml@master | ||
permissions: | ||
pull-requests: write # to update labels |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
--- | ||
name: Collect and print async labels | ||
|
||
'on': | ||
pull_request_target: | ||
types: | ||
- opened | ||
- reopened | ||
branches: | ||
- master | ||
|
||
permissions: {} | ||
|
||
jobs: | ||
list_async_labels: | ||
name: Collect and print async labels | ||
uses: alisw/ali-bot/.github/workflows/async-list-label.yml@master | ||
permissions: | ||
pull-requests: write # to update labels |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,95 @@ | ||
--- | ||
name: Validate syntax | ||
|
||
'on': | ||
- push | ||
- pull_request | ||
|
||
permissions: {} | ||
|
||
jobs: | ||
json-syntax: | ||
name: JSON | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
|
||
- name: Validate syntax for JSON files | ||
run: | | ||
error=0 | ||
readarray -d '' json_files < \ | ||
<(find . \( -path ./.git -or -path ./DATA/testing/private \) -prune -false -or -type f -name '*.json' -print0) | ||
for jsonf in "${json_files[@]}"; do | ||
echo "::debug::Checking $jsonf..." | ||
if ! errmsg=$(jq . "$jsonf" 2>&1 >/dev/null); then | ||
error=1 | ||
echo "Invalid JSON syntax found in $jsonf:" >&2 | ||
printf '::error file=%s,title=%s::%s\n' "$jsonf" 'Invalid JSON syntax' "$errmsg" | ||
fi | ||
done | ||
exit "$error" | ||
bash-syntax: | ||
name: Bash | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
|
||
- name: Validate syntax with bash -n | ||
run: | | ||
error=0 | ||
readarray -d '' files < \ | ||
<(find . -path ./.git -prune -false -or -type f -name '*.sh' -print0) | ||
for bashf in "${files[@]}"; do | ||
echo "::debug::Checking $bashf..." | ||
if ! errmsg=$(bash -n "$bashf" 2>&1 >/dev/null); then | ||
error=1 | ||
echo "Invalid Bash syntax found in $bashf:" >&2 | ||
printf '::error file=%s,title=%s::%s\n' "$bashf" 'Invalid syntax' "$errmsg" | ||
fi | ||
done | ||
exit "$error" | ||
shellcheck: | ||
name: Shellcheck | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
|
||
- name: Run Shellcheck to find errors | ||
run: | | ||
error=0 | ||
find . -path ./.git -prune -false -or -type f -name '*.sh' -print0 | | ||
xargs -0 shellcheck -xf json1 -S error -s bash > errors.json || error=$? | ||
# Produce code annotations in GitHub's format. | ||
jq -r '.comments[] | "Error found in \(.file) line \(.line):\n::error file=\(.file),line=\(.line),endLine=\(.endLine),col=\(.column),endColumn=\(.endColumn)::\(.message)"' errors.json | ||
exit "$error" | ||
pylint: | ||
name: Pylint | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
|
||
- name: Install prerequisites | ||
run: | | ||
sudo apt update -y | ||
sudo apt install -y pylint | ||
- name: Run Pylint to find errors | ||
run: | | ||
error=0 | ||
find . -path ./.git -prune -false -or -type f -name '*.py' -print0 | | ||
# "import-errors" are shown for valid modules like ROOT, so ignore them. | ||
xargs -0 pylint -E -f json --disable import-error > errors.json || error=$? | ||
# Produce code annotations in GitHub's format. | ||
jq -r '.[] | "Error found in \(.path) line \(.line):\n::error file=\(.path),line=\(.line),endLine=\(.endLine),col=\(.column),endColumn=\(.endColumn),title=Pylint \(.type) \(.symbol)::\(.message)"' errors.json | ||
exit "$error" |
Validating CODEOWNERS rules …
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.