Skip to content

Commit b7e5f63

Browse files
SunsetWolfLinlang
andauthored
fix_pip_ci (microsoft#1584)
* fix_pip_ci * fix_ci_get_data_error --------- Co-authored-by: Linlang <v-linlanglv@microsoft.com>
1 parent 4db30b1 commit b7e5f63

File tree

1 file changed

+15
-3
lines changed

1 file changed

+15
-3
lines changed

.github/workflows/test_qlib_from_pip.yml

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,20 @@ jobs:
1919

2020
steps:
2121
- name: Test qlib from pip
22-
uses: actions/checkout@v2
22+
uses: actions/checkout@v3
2323

24+
# Since version 3.7 of python for MacOS is installed in CI, version 3.7.17, this version causes "_bz not found error".
25+
# So we make the version number of python 3.7 for MacOS more specific.
26+
# refs: https://github.com/actions/setup-python/issues/682
2427
- name: Set up Python ${{ matrix.python-version }}
25-
uses: actions/setup-python@v2
28+
if: (matrix.os == 'macos-latest' && matrix.python-version == '3.7') || (matrix.os == 'macos-11' && matrix.python-version == '3.7')
29+
uses: actions/setup-python@v4
30+
with:
31+
python-version: "3.7.16"
32+
33+
- name: Set up Python ${{ matrix.python-version }}
34+
if: (matrix.os != 'macos-latest' || matrix.python-version != '3.7') && (matrix.os != 'macos-11' || matrix.python-version != '3.7')
35+
uses: actions/setup-python@v4
2636
with:
2737
python-version: ${{ matrix.python-version }}
2838

@@ -50,7 +60,9 @@ jobs:
5060
5161
- name: Downloads dependencies data
5262
run: |
53-
python scripts/get_data.py qlib_data --name qlib_data_simple --target_dir ~/.qlib/qlib_data/cn_data --interval 1d --region cn
63+
cd ..
64+
python -m qlib.run.get_data qlib_data --target_dir ~/.qlib/qlib_data/cn_data --region cn
65+
cd qlib
5466
5567
- name: Test workflow by config
5668
run: |

0 commit comments

Comments
 (0)