From 8c72ed99c2cdf04b9bc090bd67e7881a67f7421d Mon Sep 17 00:00:00 2001 From: you-n-g Date: Wed, 29 Jun 2022 17:00:35 +0800 Subject: [PATCH] Update test_qlib_from_source.yml --- .github/workflows/test_qlib_from_source.yml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test_qlib_from_source.yml b/.github/workflows/test_qlib_from_source.yml index 2758e6fad..93db747ef 100644 --- a/.github/workflows/test_qlib_from_source.yml +++ b/.github/workflows/test_qlib_from_source.yml @@ -30,11 +30,17 @@ jobs: run: | python -m pip install --upgrade pip - - name: Installing pytorch for macos + - name: Installing pytorch and lightgbm for macos if: ${{ matrix.os == 'macos-11' || matrix.os == 'macos-latest' }} run: | python -m pip install torch torchvision torchaudio - brew install libomp # lightgbm dependencies + /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Microsoft/qlib/main/.github/brew_install.sh)" + HOMEBREW_NO_AUTO_UPDATE=1 brew install lightgbm + # FIX MacOS error: Segmentation fault + # reference: https://github.com/microsoft/LightGBM/issues/4229 + wget https://raw.githubusercontent.com/Homebrew/homebrew-core/fb8323f2b170bd4ae97e1bac9bf3e2983af3fdb0/Formula/libomp.rb + brew unlink libomp + brew install libomp.rb - name: Installing pytorch for ubuntu if: ${{ matrix.os == 'ubuntu-18.04' || matrix.os == 'ubuntu-20.04' }}