lightgbm version update #40
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
name: Python-package | |
on: | |
# Triggers the workflow on push or pull request events but only for the main branch | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
# Allows you to run this workflow manually from the Actions tab | |
workflow_dispatch: | |
env: | |
CONDA_ENV: test-env | |
GITHUB_ACTIONS: 'true' | |
jobs: | |
test: | |
# The type of runner that the job will run on | |
runs-on: ubuntu-latest | |
container: | |
# Below image is generated by following `Installation-Guide.rst` | |
image: krystal1130/lightgbm_transform_dependencies:20211109.v1 | |
timeout-minutes: 60 | |
strategy: | |
fail-fast: false | |
steps: | |
- name: Check for dockerenv file | |
run: (ls /.dockerenv && echo Found dockerenv) || (echo No dockerenv) | |
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it | |
- name: Checkout repository | |
uses: actions/checkout@v2.4.0 | |
with: | |
fetch-depth: 5 | |
# Should clone recursively, or cannot find external libs of LightGBM | |
submodules: recursive | |
- name: Setup and run tests | |
shell: bash | |
run: | | |
sh ./.ci/setup.sh || exit -1 | |
export PYTHONPATH=${GITHUB_WORKSPACE}/external_libs/LightGBM/python-package | |
echo ${PYTHONPATH} | |
pytest ./tests | |
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 "🎉" |