mirror of
https://github.com/microsoft/qlib.git
synced 2026-07-05 20:11:08 +08:00
update action
This commit is contained in:
45
.github/workflows/test.yml
vendored
45
.github/workflows/test.yml
vendored
@@ -36,25 +36,25 @@ jobs:
|
||||
shell: bash
|
||||
|
||||
# Test Qlib installed with pip
|
||||
- name: Install Qlib with pip
|
||||
run: |
|
||||
if [ "$RUNNER_OS" == "Windows" ]; then
|
||||
$CONDA\\python.exe -m pip install numpy==1.19.5
|
||||
$CONDA\\python.exe -m pip install pyqlib --ignore-installed ruamel.yaml numpy --user
|
||||
else
|
||||
sudo $CONDA/bin/python -m pip install numpy==1.19.5
|
||||
sudo $CONDA/bin/python -m pip install pyqlib --ignore-installed ruamel.yaml numpy
|
||||
fi
|
||||
shell: bash
|
||||
# - name: Install Qlib with pip
|
||||
# run: |
|
||||
# if [ "$RUNNER_OS" == "Windows" ]; then
|
||||
# $CONDA\\python.exe -m pip install numpy==1.19.5
|
||||
# $CONDA\\python.exe -m pip install pyqlib --ignore-installed ruamel.yaml numpy --user
|
||||
# else
|
||||
# sudo $CONDA/bin/python -m pip install numpy==1.19.5
|
||||
# sudo $CONDA/bin/python -m pip install pyqlib --ignore-installed ruamel.yaml numpy
|
||||
# fi
|
||||
# shell: bash
|
||||
|
||||
- name: Test data downloads
|
||||
run: |
|
||||
if [ "$RUNNER_OS" == "Windows" ]; then
|
||||
$CONDA\\python.exe scripts/get_data.py qlib_data --target_dir ~/.qlib/qlib_data/cn_data --interval 1d --region cn
|
||||
else
|
||||
$CONDA/bin/python scripts/get_data.py qlib_data --target_dir ~/.qlib/qlib_data/cn_data --interval 1d --region cn
|
||||
fi
|
||||
shell: bash
|
||||
# - name: Test data downloads
|
||||
# run: |
|
||||
# if [ "$RUNNER_OS" == "Windows" ]; then
|
||||
# $CONDA\\python.exe scripts/get_data.py qlib_data --target_dir ~/.qlib/qlib_data/cn_data --interval 1d --region cn
|
||||
# else
|
||||
# $CONDA/bin/python scripts/get_data.py qlib_data --target_dir ~/.qlib/qlib_data/cn_data --interval 1d --region cn
|
||||
# fi
|
||||
# shell: bash
|
||||
|
||||
# - name: Test workflow by config (install from pip)
|
||||
# run: |
|
||||
@@ -83,6 +83,15 @@ jobs:
|
||||
fi
|
||||
shell: bash
|
||||
|
||||
- name: Test data downloads
|
||||
run: |
|
||||
if [ "$RUNNER_OS" == "Windows" ]; then
|
||||
$CONDA\\python.exe scripts/get_data.py qlib_data --target_dir ~/.qlib/qlib_data/cn_data --interval 1d --region cn
|
||||
else
|
||||
$CONDA/bin/python scripts/get_data.py qlib_data --target_dir ~/.qlib/qlib_data/cn_data --interval 1d --region cn
|
||||
fi
|
||||
shell: bash
|
||||
|
||||
- name: Install test dependencies
|
||||
run: |
|
||||
if [ "$RUNNER_OS" == "Windows" ]; then
|
||||
|
||||
Reference in New Issue
Block a user