mirror of
https://github.com/microsoft/qlib.git
synced 2026-07-17 01:14:35 +08:00
Debug MacOS CI
This commit is contained in:
18
.github/workflows/test_macos.yml
vendored
18
.github/workflows/test_macos.yml
vendored
@@ -34,25 +34,10 @@ jobs:
|
|||||||
python -m black qlib -l 120 --check --diff
|
python -m black qlib -l 120 --check --diff
|
||||||
# Test Qlib installed with pip
|
# Test Qlib installed with pip
|
||||||
|
|
||||||
- name: Check Qlib with flake8
|
|
||||||
run: |
|
|
||||||
pip install --upgrade pip
|
|
||||||
pip install flake8
|
|
||||||
cd ..
|
|
||||||
flake8 --ignore=E501,F541,E266,E402,W503,E731,E203 qlib
|
|
||||||
|
|
||||||
- name: Install Qlib with pip
|
- name: Install Qlib with pip
|
||||||
run: |
|
run: |
|
||||||
python -m pip install numpy==1.19.5
|
python -m pip install numpy==1.19.5
|
||||||
python -m pip install pyqlib --ignore-installed ruamel.yaml numpy
|
python -m pip install pyqlib --ignore-installed ruamel.yaml numpy
|
||||||
- name: Make html with sphnix
|
|
||||||
run: |
|
|
||||||
pip install -U sphinx
|
|
||||||
pip install sphinx_rtd_theme readthedocs_sphinx_ext
|
|
||||||
pip install --exists-action=w --no-cache-dir -r docs/requirements.txt
|
|
||||||
cd docs
|
|
||||||
sphinx-build -b html . build
|
|
||||||
cd ..
|
|
||||||
- name: Install Lightgbm for MacOS
|
- name: Install Lightgbm for MacOS
|
||||||
run: |
|
run: |
|
||||||
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Microsoft/qlib/main/.github/brew_install.sh)"
|
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Microsoft/qlib/main/.github/brew_install.sh)"
|
||||||
@@ -64,8 +49,7 @@ jobs:
|
|||||||
brew install libomp.rb
|
brew install libomp.rb
|
||||||
- name: Test data downloads
|
- name: Test data downloads
|
||||||
run: |
|
run: |
|
||||||
python scripts/get_data.py qlib_data --name qlib_data_simple --target_dir ~/.qlib/qlib_data/cn_data_simple --interval 1d --region cn
|
python scripts/get_data.py qlib_data --target_dir ~/.qlib/qlib_data/cn_data --interval 1d --region cn
|
||||||
python -c "import os; userpath=os.path.expanduser('~'); os.rename(userpath + '/.qlib/qlib_data/cn_data_simple', userpath + '/.qlib/qlib_data/cn_data')"
|
|
||||||
- name: Test workflow by config (install from pip)
|
- name: Test workflow by config (install from pip)
|
||||||
run: |
|
run: |
|
||||||
python qlib/workflow/cli.py examples/benchmarks/LightGBM/workflow_config_lightgbm_Alpha158.yaml
|
python qlib/workflow/cli.py examples/benchmarks/LightGBM/workflow_config_lightgbm_Alpha158.yaml
|
||||||
|
|||||||
Reference in New Issue
Block a user