added alignment for zero-based index for interaction_constraints #463
Workflow file for this run
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: CI | |
on: | |
pull_request: | |
branches: ['master', 'all-params'] # remove all-params once merged to master | |
push: | |
branches: ['master', 'all-params'] # remove all-params once merged to master | |
tags: ['*'] | |
jobs: | |
test: | |
name: Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }} | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
version: ['1.6', '1.7', '1.8', '1.9', '1.10'] | |
os: [windows-latest, ubuntu-latest, macOS-latest] | |
arch: | |
- x64 | |
env: | |
DISABLE_MLJ_TESTS: 1 | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: julia-actions/setup-julia@latest | |
with: | |
version: ${{ matrix.version }} | |
arch: ${{ matrix.arch }} | |
- name: Download LGBM examples | |
shell: python | |
run: | | |
from __future__ import print_function | |
import importlib | |
import sys | |
req = importlib.import_module("urllib") if sys.version_info < (3, ) else importlib.import_module("urllib.request") | |
req.urlretrieve("https://github.com/microsoft/LightGBM/archive/v3.3.5.tar.gz", "lgbm.tar") | |
- run: tar -xvf lgbm.tar | |
shell: bash | |
name: Untar LGBM examples | |
- run: julia --color=yes --project -e 'using Pkg; Pkg.build(); Pkg.test(coverage=true);' | |
continue-on-error: false | |
env: | |
LIGHTGBM_EXAMPLES_PATH: LightGBM-3.3.5 | |
MLJ: | |
name: MLJ Interface enabled -- Julia ${{ matrix.version }} | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
version: ['1.6', '1.7', '1.8', '1.9', '1.10'] | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: julia-actions/setup-julia@latest | |
with: | |
version: ${{ matrix.version }} | |
- run: wget -O lgbm.tar https://github.com/microsoft/LightGBM/archive/v3.3.5.tar.gz && tar -xf lgbm.tar | |
- run: julia --color=yes --project -e 'using Pkg; Pkg.build(); Pkg.test(coverage=true);' | |
env: | |
LIGHTGBM_EXAMPLES_PATH: LightGBM-3.3.5 | |
docs: | |
name: Documentation | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: julia-actions/setup-julia@latest | |
- name: Build package to grab binary | |
run: julia --project -e 'using Pkg; Pkg.build(); Pkg.instantiate()' | |
- name: Instantiate docs | |
run: julia --project=docs/ -e 'using Pkg; Pkg.develop(PackageSpec(path=pwd())); Pkg.instantiate()' | |
- name: Build docs and deploy | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # For authentication with GitHub Actions token | |
DOCUMENTER_KEY: ${{ secrets.DOCUMENTER_KEY }} # For authentication with SSH deploy key | |
run: julia --project=docs/ docs/make.jl |