Skip to content

Commit

Permalink
comment out CI
Browse files Browse the repository at this point in the history
  • Loading branch information
jameslamb committed Sep 27, 2022
1 parent 1660982 commit 704aea4
Show file tree
Hide file tree
Showing 4 changed files with 826 additions and 826 deletions.
224 changes: 112 additions & 112 deletions .github/workflows/cuda.yml
Original file line number Diff line number Diff line change
@@ -1,115 +1,115 @@
name: CUDA Version
# name: CUDA Version

on:
push:
branches:
- master
pull_request:
branches:
- master
# on:
# push:
# branches:
# - master
# pull_request:
# branches:
# - master

env:
github_actions: 'true'
os_name: linux
conda_env: test-env
# env:
# github_actions: 'true'
# os_name: linux
# conda_env: test-env

jobs:
test:
name: ${{ matrix.task }} ${{ 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.8"
cuda_version: "11.7.1"
task: cuda
- method: pip
compiler: clang
python_version: "3.9"
cuda_version: "10.0"
task: cuda
- method: wheel
compiler: gcc
python_version: "3.10"
cuda_version: "9.0"
task: cuda
- method: source
compiler: gcc
python_version: "3.8"
cuda_version: "11.7.1"
task: cuda_exp
- method: pip
compiler: clang
python_version: "3.9"
cuda_version: "10.0"
task: cuda_exp
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 \
lsb-release \
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=${{ matrix.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/miniforge
export PATH=\$CONDA/bin:\$PATH
nvidia-smi
$ROOT_DOCKER_FOLDER/.ci/setup.sh || exit -1
$ROOT_DOCKER_FOLDER/.ci/test.sh || exit -1
EOF
cuda_version="${{ matrix.cuda_version }}"
cuda_major=${cuda_version%%.*}
docker_img="nvcr.io/nvidia/cuda:${cuda_version}-devel"
if [[ ${cuda_major} -gt 10 ]]; then
docker_img="${docker_img}-ubuntu$(lsb_release -rs)"
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
all-successful:
# https://github.saobby.my.eu.orgmunity/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 "🎉"
# jobs:
# test:
# name: ${{ matrix.task }} ${{ 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.8"
# cuda_version: "11.7.1"
# task: cuda
# - method: pip
# compiler: clang
# python_version: "3.9"
# cuda_version: "10.0"
# task: cuda
# - method: wheel
# compiler: gcc
# python_version: "3.10"
# cuda_version: "9.0"
# task: cuda
# - method: source
# compiler: gcc
# python_version: "3.8"
# cuda_version: "11.7.1"
# task: cuda_exp
# - method: pip
# compiler: clang
# python_version: "3.9"
# cuda_version: "10.0"
# task: cuda_exp
# 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 \
# lsb-release \
# 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=${{ matrix.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/miniforge
# export PATH=\$CONDA/bin:\$PATH
# nvidia-smi
# $ROOT_DOCKER_FOLDER/.ci/setup.sh || exit -1
# $ROOT_DOCKER_FOLDER/.ci/test.sh || exit -1
# EOF
# cuda_version="${{ matrix.cuda_version }}"
# cuda_major=${cuda_version%%.*}
# docker_img="nvcr.io/nvidia/cuda:${cuda_version}-devel"
# if [[ ${cuda_major} -gt 10 ]]; then
# docker_img="${docker_img}-ubuntu$(lsb_release -rs)"
# 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
# all-successful:
# # https://github.saobby.my.eu.orgmunity/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 "🎉"
152 changes: 76 additions & 76 deletions .github/workflows/python_package.yml
Original file line number Diff line number Diff line change
@@ -1,79 +1,79 @@
name: Python-package
# name: Python-package

on:
push:
branches:
- master
pull_request:
branches:
- master
# on:
# push:
# branches:
# - master
# pull_request:
# branches:
# - master

env:
CONDA_ENV: test-env
GITHUB_ACTIONS: 'true'
# env:
# CONDA_ENV: test-env
# GITHUB_ACTIONS: 'true'

jobs:
test:
name: ${{ matrix.task }} ${{ matrix.method }} (${{ matrix.os }}, Python ${{ matrix.python_version }})
runs-on: ${{ matrix.os }}
timeout-minutes: 60
strategy:
fail-fast: false
matrix:
include:
- os: macOS-latest
task: regular
python_version: '3.8'
- os: macOS-latest
task: sdist
python_version: '3.9'
- os: macOS-latest
task: bdist
python_version: '3.7'
- os: macOS-latest
task: if-else
python_version: '3.8'
- os: macOS-latest
task: mpi
method: source
python_version: '3.9'
- os: macOS-latest
task: mpi
method: pip
python_version: '3.10'
- os: macOS-latest
task: mpi
method: wheel
python_version: '3.7'
steps:
- name: Checkout repository
uses: actions/checkout@v2.4.0
with:
fetch-depth: 5
submodules: true
- name: Setup and run tests
shell: bash
run: |
export TASK="${{ matrix.task }}"
export METHOD="${{ matrix.method }}"
export PYTHON_VERSION="${{ matrix.python_version }}"
if [[ "${{ matrix.os }}" == "macOS-latest" ]]; then
export COMPILER="gcc"
export OS_NAME="macos"
elif [[ "${{ matrix.os }}" == "ubuntu-latest" ]]; then
export COMPILER="clang"
export OS_NAME="linux"
fi
export BUILD_DIRECTORY="$GITHUB_WORKSPACE"
export LGB_VER=$(head -n 1 VERSION.txt)
export CONDA=${HOME}/miniforge
export PATH=${CONDA}/bin:${PATH}
$GITHUB_WORKSPACE/.ci/setup.sh || exit -1
$GITHUB_WORKSPACE/.ci/test.sh || exit -1
all-successful:
# https://github.saobby.my.eu.orgmunity/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 "🎉"
# jobs:
# test:
# name: ${{ matrix.task }} ${{ matrix.method }} (${{ matrix.os }}, Python ${{ matrix.python_version }})
# runs-on: ${{ matrix.os }}
# timeout-minutes: 60
# strategy:
# fail-fast: false
# matrix:
# include:
# - os: macOS-latest
# task: regular
# python_version: '3.8'
# - os: macOS-latest
# task: sdist
# python_version: '3.9'
# - os: macOS-latest
# task: bdist
# python_version: '3.7'
# - os: macOS-latest
# task: if-else
# python_version: '3.8'
# - os: macOS-latest
# task: mpi
# method: source
# python_version: '3.9'
# - os: macOS-latest
# task: mpi
# method: pip
# python_version: '3.10'
# - os: macOS-latest
# task: mpi
# method: wheel
# python_version: '3.7'
# steps:
# - name: Checkout repository
# uses: actions/checkout@v2.4.0
# with:
# fetch-depth: 5
# submodules: true
# - name: Setup and run tests
# shell: bash
# run: |
# export TASK="${{ matrix.task }}"
# export METHOD="${{ matrix.method }}"
# export PYTHON_VERSION="${{ matrix.python_version }}"
# if [[ "${{ matrix.os }}" == "macOS-latest" ]]; then
# export COMPILER="gcc"
# export OS_NAME="macos"
# elif [[ "${{ matrix.os }}" == "ubuntu-latest" ]]; then
# export COMPILER="clang"
# export OS_NAME="linux"
# fi
# export BUILD_DIRECTORY="$GITHUB_WORKSPACE"
# export LGB_VER=$(head -n 1 VERSION.txt)
# export CONDA=${HOME}/miniforge
# export PATH=${CONDA}/bin:${PATH}
# $GITHUB_WORKSPACE/.ci/setup.sh || exit -1
# $GITHUB_WORKSPACE/.ci/test.sh || exit -1
# all-successful:
# # https://github.saobby.my.eu.orgmunity/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 "🎉"
Loading

0 comments on commit 704aea4

Please sign in to comment.