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
2c8bb45b
Unverified
Commit
2c8bb45b
authored
Sep 17, 2021
by
Nikita Titov
Committed by
GitHub
Sep 17, 2021
Browse files
[ci] Stop running CUDA tests at CI (#4611)
parent
54facc4d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
96 deletions
+0
-96
.github/workflows/cuda.yml
.github/workflows/cuda.yml
+0
-96
No files found.
.github/workflows/cuda.yml
deleted
100644 → 0
View file @
54facc4d
name
:
CUDA Version
on
:
push
:
branches
:
-
master
pull_request
:
branches
:
-
master
env
:
github_actions
:
'
true'
os_name
:
linux
task
:
cuda
conda_env
:
test-env
jobs
:
test
:
name
:
cuda ${{ matrix.cuda_version }} ${{ matrix.method }} (linux, ${{ matrix.compiler }}, Python ${{ matrix.python_version }})
runs-on
:
[
self-hosted
,
linux
]
timeout-minutes
:
60
strategy
:
fail-fast
:
false
matrix
:
include
:
-
method
:
source
compiler
:
gcc
python_version
:
3.7
cuda_version
:
"
11.4.0"
-
method
:
pip
compiler
:
clang
python_version
:
3.8
cuda_version
:
"
10.0"
-
method
:
wheel
compiler
:
gcc
python_version
:
3.9
cuda_version
:
"
9.0"
steps
:
-
name
:
Setup or update software on host machine
run
:
|
sudo apt-get update
sudo apt-get install --no-install-recommends -y \
apt-transport-https \
ca-certificates \
curl \
git \
gnupg-agent \
software-properties-common
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" -y
curl -sL https://nvidia.github.io/nvidia-docker/gpgkey | sudo apt-key add -
curl -sL https://nvidia.github.io/nvidia-docker/$(. /etc/os-release;echo $ID$VERSION_ID)/nvidia-docker.list | sudo tee /etc/apt/sources.list.d/nvidia-docker.list
sudo apt-get update
sudo apt-get install --no-install-recommends -y \
containerd.io \
docker-ce \
docker-ce-cli \
nvidia-docker2
sudo chmod a+rw /var/run/docker.sock
sudo systemctl restart docker
-
name
:
Remove old folder with repository
run
:
sudo rm -rf $GITHUB_WORKSPACE
-
name
:
Checkout repository
uses
:
actions/checkout@v1
with
:
fetch-depth
:
5
submodules
:
true
-
name
:
Setup and run tests
run
:
|
export ROOT_DOCKER_FOLDER=/LightGBM
cat > docker.env <<EOF
GITHUB_ACTIONS=${{ env.github_actions }}
OS_NAME=${{ env.os_name }}
COMPILER=${{ matrix.compiler }}
TASK=${{ env.task }}
METHOD=${{ matrix.method }}
CONDA_ENV=${{ env.conda_env }}
PYTHON_VERSION=${{ matrix.python_version }}
BUILD_DIRECTORY=$ROOT_DOCKER_FOLDER
LGB_VER=$(head -n 1 VERSION.txt)
EOF
cat > docker-script.sh <<EOF
export CONDA=\$HOME/miniconda
export PATH=\$CONDA/bin:\$PATH
nvidia-smi
$ROOT_DOCKER_FOLDER/.ci/setup.sh || exit -1
$ROOT_DOCKER_FOLDER/.ci/test.sh || exit -1
EOF
docker run --env-file docker.env -v "$GITHUB_WORKSPACE":"$ROOT_DOCKER_FOLDER" --rm --gpus all "nvcr.io/nvidia/cuda:${{ matrix.cuda_version }}-devel" /bin/bash $ROOT_DOCKER_FOLDER/docker-script.sh
all-successful
:
# https://github.community/t/is-it-possible-to-require-all-github-actions-tasks-to-pass-without-enumerating-them/117957/4?u=graingert
runs-on
:
ubuntu-latest
needs
:
[
test
]
steps
:
-
name
:
Note that all tests succeeded
run
:
echo "🎉"
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