Skip to content

Commit 4c30e58

Browse files
Fivele-LiCadenza-LiSunsetWolf
authored
Troubleshooting pip version issues in CI (#1504)
* CI failed to run on 23.1 and 23.1.1 * add pyproject.toml * upgrade pip in slow.yml * upgrade build-system requires * troubleshooting pytest problem * troubleshooting pytest problem * troubleshooting pytest problem * troubleshooting pytest problem * add qlib root path to python sys.path * add qlib root path to $PYTHONPATH * add qlib root path to $PYTHONPATH * add qlib root path to $PYTHONPATH * modify pytest root; * remove set env * change_pytest_command_CI * change_pytest_command_CI * fix_ci * fix_ci * fix_ci * fix_ci * fix_ci * fix_ci * fix_ci * remove_toml * recover_toml --------- Co-authored-by: lijinhui <[email protected]> Co-authored-by: linlang <[email protected]>
1 parent 5387ea5 commit 4c30e58

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

.github/workflows/test_qlib_from_source.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,8 @@ jobs:
3838
python-version: ${{ matrix.python-version }}
3939

4040
- name: Update pip to the latest version
41-
# pip release version 23.1 on Apr.15 2023, CI failed to run, Please refer to #1495 ofr detailed logs.
42-
# The pip version has been temporarily fixed to 23.0
4341
run: |
44-
python -m pip install pip==23.0
42+
python -m pip install --upgrade pip
4543
4644
- name: Installing pytorch for macos
4745
if: ${{ matrix.os == 'macos-11' || matrix.os == 'macos-latest' }}

.github/workflows/test_qlib_from_source_slow.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,8 @@ jobs:
3838
python-version: ${{ matrix.python-version }}
3939

4040
- name: Set up Python tools
41-
# pip release version 23.1 on Apr.15 2023, CI failed to run, Please refer to #1495 ofr detailed logs.
42-
# The pip version has been temporarily fixed to 23.0
4341
run: |
44-
python -m pip install pip==23.0
42+
python -m pip install --upgrade pip
4543
pip install --upgrade cython numpy
4644
pip install -e .[dev]
4745

pyproject.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
[build-system]
2+
requires = ["setuptools", "numpy", "Cython"]

tests/test_pit.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,9 @@
1313

1414
from qlib.data import D
1515
from qlib.tests.data import GetData
16-
from scripts.dump_pit import DumpPitData
16+
17+
sys.path.append(str(Path(__file__).resolve().parent.parent.joinpath("scripts")))
18+
from dump_pit import DumpPitData
1719

1820
sys.path.append(str(Path(__file__).resolve().parent.parent.joinpath("scripts/data_collector/pit")))
1921
from collector import Run

0 commit comments

Comments
 (0)