mirror of
https://github.com/microsoft/qlib.git
synced 2026-07-15 00:36:55 +08:00
Update test_qlib_from_source.yml
This commit is contained in:
9
.github/workflows/test_qlib_from_source.yml
vendored
9
.github/workflows/test_qlib_from_source.yml
vendored
@@ -30,17 +30,10 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
python -m pip install --upgrade pip
|
python -m pip install --upgrade pip
|
||||||
|
|
||||||
- name: Installing pytorch and lightgbm for macos
|
- name: Installing pytorch for macos
|
||||||
if: ${{ matrix.os == 'macos-11' || matrix.os == 'macos-latest' }}
|
if: ${{ matrix.os == 'macos-11' || matrix.os == 'macos-latest' }}
|
||||||
run: |
|
run: |
|
||||||
python -m pip install torch torchvision torchaudio
|
python -m pip install torch torchvision torchaudio
|
||||||
/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
|
- name: Installing pytorch for ubuntu
|
||||||
if: ${{ matrix.os == 'ubuntu-18.04' || matrix.os == 'ubuntu-20.04' }}
|
if: ${{ matrix.os == 'ubuntu-18.04' || matrix.os == 'ubuntu-20.04' }}
|
||||||
|
|||||||
Reference in New Issue
Block a user