Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
tianlh
LightGBM-DCU
Commits
a2ae6b95
Unverified
Commit
a2ae6b95
authored
Dec 27, 2022
by
James Lamb
Committed by
GitHub
Dec 27, 2022
Browse files
[ci] make GitHub Actions branch protection stricter (fixes #5501) (#5645)
parent
6482b47e
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
23 additions
and
15 deletions
+23
-15
.github/workflows/cuda.yml
.github/workflows/cuda.yml
+5
-3
.github/workflows/optional_checks.yml
.github/workflows/optional_checks.yml
+1
-1
.github/workflows/python_package.yml
.github/workflows/python_package.yml
+5
-3
.github/workflows/r_package.yml
.github/workflows/r_package.yml
+6
-4
.github/workflows/static_analysis.yml
.github/workflows/static_analysis.yml
+6
-4
No files found.
.github/workflows/cuda.yml
View file @
a2ae6b95
...
@@ -107,10 +107,12 @@ jobs:
...
@@ -107,10 +107,12 @@ jobs:
docker_img="${docker_img}-ubuntu$(lsb_release -rs)"
docker_img="${docker_img}-ubuntu$(lsb_release -rs)"
fi
fi
docker run --env-file docker.env -v "$GITHUB_WORKSPACE":"$ROOT_DOCKER_FOLDER" --rm --gpus all "$docker_img" /bin/bash $ROOT_DOCKER_FOLDER/docker-script.sh
docker run --env-file docker.env -v "$GITHUB_WORKSPACE":"$ROOT_DOCKER_FOLDER" --rm --gpus all "$docker_img" /bin/bash $ROOT_DOCKER_FOLDER/docker-script.sh
all-successful
:
all-
cuda-jobs-
successful
:
# https://github.community/t/is-it-possible-to-require-all-github-actions-tasks-to-pass-without-enumerating-them/117957/4?u=graingert
if
:
always()
runs-on
:
ubuntu-latest
runs-on
:
ubuntu-latest
needs
:
[
test
]
needs
:
[
test
]
steps
:
steps
:
-
name
:
Note that all tests succeeded
-
name
:
Note that all tests succeeded
run
:
echo "🎉"
uses
:
re-actors/alls-green@v1.2.2
with
:
jobs
:
${{ toJSON(needs) }}
.github/workflows/optional_checks.yml
View file @
a2ae6b95
...
@@ -7,7 +7,7 @@ on:
...
@@ -7,7 +7,7 @@ on:
-
release/*
-
release/*
jobs
:
jobs
:
all-successful
:
all-
optional-checks-
successful
:
timeout-minutes
:
120
timeout-minutes
:
120
runs-on
:
ubuntu-22.04
runs-on
:
ubuntu-22.04
steps
:
steps
:
...
...
.github/workflows/python_package.yml
View file @
a2ae6b95
...
@@ -71,10 +71,12 @@ jobs:
...
@@ -71,10 +71,12 @@ jobs:
export PATH=${CONDA}/bin:${PATH}
export PATH=${CONDA}/bin:${PATH}
$GITHUB_WORKSPACE/.ci/setup.sh || exit -1
$GITHUB_WORKSPACE/.ci/setup.sh || exit -1
$GITHUB_WORKSPACE/.ci/test.sh || exit -1
$GITHUB_WORKSPACE/.ci/test.sh || exit -1
all-successful
:
all-
python-package-jobs-
successful
:
# https://github.community/t/is-it-possible-to-require-all-github-actions-tasks-to-pass-without-enumerating-them/117957/4?u=graingert
if
:
always()
runs-on
:
ubuntu-latest
runs-on
:
ubuntu-latest
needs
:
[
test
]
needs
:
[
test
]
steps
:
steps
:
-
name
:
Note that all tests succeeded
-
name
:
Note that all tests succeeded
run
:
echo "🎉"
uses
:
re-actors/alls-green@v1.2.2
with
:
jobs
:
${{ toJSON(needs) }}
.github/workflows/r_package.yml
View file @
a2ae6b95
...
@@ -246,10 +246,12 @@ jobs:
...
@@ -246,10 +246,12 @@ jobs:
echo "NOTEs, WARNINGs, or ERRORs have been found by R CMD check"
echo "NOTEs, WARNINGs, or ERRORs have been found by R CMD check"
exit -1
exit -1
fi
fi
all-successful
:
all-
r-package-jobs-
successful
:
# https://github.community/t/is-it-possible-to-require-all-github-actions-tasks-to-pass-without-enumerating-them/117957/4?u=graingert
if
:
always()
runs-on
:
ubuntu-
22.04
runs-on
:
ubuntu-
latest
needs
:
[
test
,
test-r-sanitizers
,
test-r-debian-clang
]
needs
:
[
test
,
test-r-sanitizers
,
test-r-debian-clang
]
steps
:
steps
:
-
name
:
Note that all tests succeeded
-
name
:
Note that all tests succeeded
run
:
echo "🎉"
uses
:
re-actors/alls-green@v1.2.2
with
:
jobs
:
${{ toJSON(needs) }}
.github/workflows/static_analysis.yml
View file @
a2ae6b95
...
@@ -80,10 +80,12 @@ jobs:
...
@@ -80,10 +80,12 @@ jobs:
echo ""
echo ""
exit -1
exit -1
fi
fi
all-successful
:
all-
static-analysis-jobs-
successful
:
# https://github.community/t/is-it-possible-to-require-all-github-actions-tasks-to-pass-without-enumerating-them/117957/4?u=graingert
if
:
always()
runs-on
:
ubuntu-
22.04
runs-on
:
ubuntu-
latest
needs
:
[
test
,
r-check-docs
]
needs
:
[
test
,
r-check-docs
]
steps
:
steps
:
-
name
:
Note that all tests succeeded
-
name
:
Note that all tests succeeded
run
:
echo "🎉"
uses
:
re-actors/alls-green@v1.2.2
with
:
jobs
:
${{ toJSON(needs) }}
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