From fbe4139caa1f347f2cfc20f638f8ada838ccd006 Mon Sep 17 00:00:00 2001 From: lijinhui <128388363+Fivele-Li@users.noreply.github.com> Date: Fri, 28 Apr 2023 10:16:32 +0800 Subject: [PATCH 01/14] CI failed to run on 23.1 and 23.1.1 --- .github/workflows/test_qlib_from_source.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test_qlib_from_source.yml b/.github/workflows/test_qlib_from_source.yml index 68dfe5b3fd..98a58485ac 100644 --- a/.github/workflows/test_qlib_from_source.yml +++ b/.github/workflows/test_qlib_from_source.yml @@ -31,7 +31,7 @@ jobs: # pip release version 23.1 on Apr.15 2023, CI failed to run, Please refer to #1495 ofr detailed logs. # The pip version has been temporarily fixed to 23.0.1 run: | - python -m pip install pip==23.0.1 + python -m pip install --upgrade pip - name: Installing pytorch for macos if: ${{ matrix.os == 'macos-11' || matrix.os == 'macos-latest' }} From f4d3f10e89ec104702a9f4f27032d6267a72ce01 Mon Sep 17 00:00:00 2001 From: lijinhui <362237642@qq.com> Date: Fri, 5 May 2023 13:11:57 +0800 Subject: [PATCH 02/14] add pyproject.toml --- pyproject.toml | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 pyproject.toml diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 0000000000..987e224730 --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,2 @@ +[build-system] +requires = ["setuptools", "numpy", "Cython"] \ No newline at end of file From 2120a4243fea0e25a24e75d83d9025e5addeb7b1 Mon Sep 17 00:00:00 2001 From: lijinhui <128388363+Fivele-Li@users.noreply.github.com> Date: Fri, 5 May 2023 13:37:29 +0800 Subject: [PATCH 03/14] upgrade pip in slow.yml --- .github/workflows/test_qlib_from_source_slow.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test_qlib_from_source_slow.yml b/.github/workflows/test_qlib_from_source_slow.yml index f8e43fa179..36726bf851 100644 --- a/.github/workflows/test_qlib_from_source_slow.yml +++ b/.github/workflows/test_qlib_from_source_slow.yml @@ -31,7 +31,7 @@ jobs: # pip release version 23.1 on Apr.15 2023, CI failed to run, Please refer to #1495 ofr detailed logs. # The pip version has been temporarily fixed to 23.0.1 run: | - python -m pip install pip==23.0.1 + python -m pip install --upgrade pip pip install --upgrade cython numpy pip install -e .[dev] From c52b5a9b1754eb14d20a2a62acb1b8da66158ef4 Mon Sep 17 00:00:00 2001 From: lijinhui <128388363+Fivele-Li@users.noreply.github.com> Date: Fri, 5 May 2023 14:42:30 +0800 Subject: [PATCH 04/14] upgrade build-system requires --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 987e224730..c9538153fd 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,2 +1,2 @@ [build-system] -requires = ["setuptools", "numpy", "Cython"] \ No newline at end of file +requires = ["setuptools", "wheel"] \ No newline at end of file From 5ced0a7cbfda57226bad88425b23af978cf2526c Mon Sep 17 00:00:00 2001 From: lijinhui <128388363+Fivele-Li@users.noreply.github.com> Date: Fri, 5 May 2023 15:04:19 +0800 Subject: [PATCH 05/14] troubleshooting pytest problem --- .github/workflows/test_qlib_from_source_slow.yml | 2 ++ pyproject.toml | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test_qlib_from_source_slow.yml b/.github/workflows/test_qlib_from_source_slow.yml index 36726bf851..e6a2598bcc 100644 --- a/.github/workflows/test_qlib_from_source_slow.yml +++ b/.github/workflows/test_qlib_from_source_slow.yml @@ -57,4 +57,6 @@ jobs: max_attempts: 3 command: | cd tests + pwd + python -c "import sys; print(sys.path)" python -m pytest . -m "slow" --durations=0 diff --git a/pyproject.toml b/pyproject.toml index c9538153fd..987e224730 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,2 +1,2 @@ [build-system] -requires = ["setuptools", "wheel"] \ No newline at end of file +requires = ["setuptools", "numpy", "Cython"] \ No newline at end of file From f347e3884586b1f0f245425762e76134b8e3d519 Mon Sep 17 00:00:00 2001 From: lijinhui <128388363+Fivele-Li@users.noreply.github.com> Date: Fri, 5 May 2023 15:05:14 +0800 Subject: [PATCH 06/14] troubleshooting pytest problem --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 987e224730..6350d092c7 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,2 +1,2 @@ [build-system] -requires = ["setuptools", "numpy", "Cython"] \ No newline at end of file +requires = ["setuptools", "numpy", "Cython"] From 27aea07f993fe72b809f9deb5686833df3e003e9 Mon Sep 17 00:00:00 2001 From: lijinhui <128388363+Fivele-Li@users.noreply.github.com> Date: Fri, 5 May 2023 15:39:12 +0800 Subject: [PATCH 07/14] troubleshooting pytest problem --- .github/workflows/test_qlib_from_source_slow.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/test_qlib_from_source_slow.yml b/.github/workflows/test_qlib_from_source_slow.yml index e6a2598bcc..0aa1fb3371 100644 --- a/.github/workflows/test_qlib_from_source_slow.yml +++ b/.github/workflows/test_qlib_from_source_slow.yml @@ -58,5 +58,6 @@ jobs: command: | cd tests pwd + ll python -c "import sys; print(sys.path)" python -m pytest . -m "slow" --durations=0 From 6ceb96ae65e6f1910c13d6ac97991223d3809aee Mon Sep 17 00:00:00 2001 From: lijinhui <128388363+Fivele-Li@users.noreply.github.com> Date: Fri, 5 May 2023 16:00:07 +0800 Subject: [PATCH 08/14] troubleshooting pytest problem --- .github/workflows/test_qlib_from_source_slow.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test_qlib_from_source_slow.yml b/.github/workflows/test_qlib_from_source_slow.yml index 0aa1fb3371..42f3c523cd 100644 --- a/.github/workflows/test_qlib_from_source_slow.yml +++ b/.github/workflows/test_qlib_from_source_slow.yml @@ -58,6 +58,6 @@ jobs: command: | cd tests pwd - ll + ls python -c "import sys; print(sys.path)" python -m pytest . -m "slow" --durations=0 From c1707866b3e98c7f712d16ec0c038cf75afbe4a7 Mon Sep 17 00:00:00 2001 From: Cadenza-Li <362237642@qq.com> Date: Tue, 9 May 2023 21:23:30 +0800 Subject: [PATCH 09/14] add qlib root path to python sys.path --- .github/workflows/test_qlib_from_source.yml | 1 + .github/workflows/test_qlib_from_source_slow.yml | 4 +--- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/.github/workflows/test_qlib_from_source.yml b/.github/workflows/test_qlib_from_source.yml index 98a58485ac..07ad3250b4 100644 --- a/.github/workflows/test_qlib_from_source.yml +++ b/.github/workflows/test_qlib_from_source.yml @@ -160,5 +160,6 @@ jobs: timeout_minutes: 60 max_attempts: 3 command: | + python -c "import sys; import os; sys.path.append(os.getcwd()); print(sys.path)" cd tests python -m pytest . -m "not slow" --durations=0 diff --git a/.github/workflows/test_qlib_from_source_slow.yml b/.github/workflows/test_qlib_from_source_slow.yml index 42f3c523cd..30ae043b73 100644 --- a/.github/workflows/test_qlib_from_source_slow.yml +++ b/.github/workflows/test_qlib_from_source_slow.yml @@ -56,8 +56,6 @@ jobs: timeout_minutes: 240 max_attempts: 3 command: | + python -c "import sys; import os; sys.path.append(os.getcwd()); print(sys.path)" cd tests - pwd - ls - python -c "import sys; print(sys.path)" python -m pytest . -m "slow" --durations=0 From 55f9a1891bb4dbd0077db73c91ee4d2baa58ca57 Mon Sep 17 00:00:00 2001 From: Cadenza-Li <362237642@qq.com> Date: Tue, 9 May 2023 21:58:46 +0800 Subject: [PATCH 10/14] add qlib root path to $PYTHONPATH --- .github/workflows/test_qlib_from_source.yml | 7 ++++++- .github/workflows/test_qlib_from_source_slow.yml | 7 ++++++- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test_qlib_from_source.yml b/.github/workflows/test_qlib_from_source.yml index 07ad3250b4..60f401cb18 100644 --- a/.github/workflows/test_qlib_from_source.yml +++ b/.github/workflows/test_qlib_from_source.yml @@ -160,6 +160,11 @@ jobs: timeout_minutes: 60 max_attempts: 3 command: | - python -c "import sys; import os; sys.path.append(os.getcwd()); print(sys.path)" + if [ ${{ matrix.os }} = 'Windows' ]; then + set PYTHONPATH=%PYTHONPATH%;%cd% + else + export PYTHONPATH=$PYTHONPATH:$(pwd) + fi + python -c "import sys; print(sys.path)" cd tests python -m pytest . -m "not slow" --durations=0 diff --git a/.github/workflows/test_qlib_from_source_slow.yml b/.github/workflows/test_qlib_from_source_slow.yml index 30ae043b73..d571507f60 100644 --- a/.github/workflows/test_qlib_from_source_slow.yml +++ b/.github/workflows/test_qlib_from_source_slow.yml @@ -56,6 +56,11 @@ jobs: timeout_minutes: 240 max_attempts: 3 command: | - python -c "import sys; import os; sys.path.append(os.getcwd()); print(sys.path)" + if [ ${{ matrix.os }} = 'Windows' ]; then + set PYTHONPATH=%PYTHONPATH%;%cd% + else + export PYTHONPATH=$PYTHONPATH:$(pwd) + fi + python -c "import sys; print(sys.path)" cd tests python -m pytest . -m "slow" --durations=0 From d9ce7b78b10e044b5e8c6a9ef777a287ccff9f0b Mon Sep 17 00:00:00 2001 From: Cadenza-Li <362237642@qq.com> Date: Tue, 9 May 2023 22:49:04 +0800 Subject: [PATCH 11/14] add qlib root path to $PYTHONPATH --- .github/workflows/test_qlib_from_source.yml | 6 +----- .github/workflows/test_qlib_from_source_slow.yml | 6 +----- 2 files changed, 2 insertions(+), 10 deletions(-) diff --git a/.github/workflows/test_qlib_from_source.yml b/.github/workflows/test_qlib_from_source.yml index 60f401cb18..26c453224f 100644 --- a/.github/workflows/test_qlib_from_source.yml +++ b/.github/workflows/test_qlib_from_source.yml @@ -160,11 +160,7 @@ jobs: timeout_minutes: 60 max_attempts: 3 command: | - if [ ${{ matrix.os }} = 'Windows' ]; then - set PYTHONPATH=%PYTHONPATH%;%cd% - else - export PYTHONPATH=$PYTHONPATH:$(pwd) - fi + if ${{matrix.os = 'windows-latest'}}; then set PYTHONPATH=%PYTHONPATH%;%cd%; else export PYTHONPATH=$PYTHONPATH:$(pwd); fi python -c "import sys; print(sys.path)" cd tests python -m pytest . -m "not slow" --durations=0 diff --git a/.github/workflows/test_qlib_from_source_slow.yml b/.github/workflows/test_qlib_from_source_slow.yml index d571507f60..46f013481e 100644 --- a/.github/workflows/test_qlib_from_source_slow.yml +++ b/.github/workflows/test_qlib_from_source_slow.yml @@ -56,11 +56,7 @@ jobs: timeout_minutes: 240 max_attempts: 3 command: | - if [ ${{ matrix.os }} = 'Windows' ]; then - set PYTHONPATH=%PYTHONPATH%;%cd% - else - export PYTHONPATH=$PYTHONPATH:$(pwd) - fi + if ${{matrix.os = 'windows-latest'}}; then set PYTHONPATH=%PYTHONPATH%;%cd%; else export PYTHONPATH=$PYTHONPATH:$(pwd); fi python -c "import sys; print(sys.path)" cd tests python -m pytest . -m "slow" --durations=0 From 2e5f379d0f938a28c1cf37253afa31dfaba7029a Mon Sep 17 00:00:00 2001 From: Cadenza-Li <362237642@qq.com> Date: Wed, 10 May 2023 09:38:18 +0800 Subject: [PATCH 12/14] add qlib root path to $PYTHONPATH --- .github/workflows/test_qlib_from_source.yml | 2 +- .github/workflows/test_qlib_from_source_slow.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test_qlib_from_source.yml b/.github/workflows/test_qlib_from_source.yml index 26c453224f..333009e5c4 100644 --- a/.github/workflows/test_qlib_from_source.yml +++ b/.github/workflows/test_qlib_from_source.yml @@ -160,7 +160,7 @@ jobs: timeout_minutes: 60 max_attempts: 3 command: | - if ${{matrix.os = 'windows-latest'}}; then set PYTHONPATH=%PYTHONPATH%;%cd%; else export PYTHONPATH=$PYTHONPATH:$(pwd); fi + if ${{ matrix.os == 'windows-latest' }}; then set PYTHONPATH=%PYTHONPATH%;%cd%; else export PYTHONPATH=$PYTHONPATH:$(pwd); fi python -c "import sys; print(sys.path)" cd tests python -m pytest . -m "not slow" --durations=0 diff --git a/.github/workflows/test_qlib_from_source_slow.yml b/.github/workflows/test_qlib_from_source_slow.yml index 46f013481e..7d71d53a3f 100644 --- a/.github/workflows/test_qlib_from_source_slow.yml +++ b/.github/workflows/test_qlib_from_source_slow.yml @@ -56,7 +56,7 @@ jobs: timeout_minutes: 240 max_attempts: 3 command: | - if ${{matrix.os = 'windows-latest'}}; then set PYTHONPATH=%PYTHONPATH%;%cd%; else export PYTHONPATH=$PYTHONPATH:$(pwd); fi + if ${{ matrix.os == 'windows-latest '}}; then set PYTHONPATH=%PYTHONPATH%;%cd%; else export PYTHONPATH=$PYTHONPATH:$(pwd); fi python -c "import sys; print(sys.path)" cd tests python -m pytest . -m "slow" --durations=0 From 6df29ba983f7cb64bd46e6b8bb5c1ceff27d9ce0 Mon Sep 17 00:00:00 2001 From: Cadenza-Li <128388363+Fivele-Li@users.noreply.github.com> Date: Wed, 10 May 2023 10:40:38 +0800 Subject: [PATCH 13/14] modify pytest root; --- .github/workflows/test_qlib_from_source.yml | 3 +-- .github/workflows/test_qlib_from_source_slow.yml | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/.github/workflows/test_qlib_from_source.yml b/.github/workflows/test_qlib_from_source.yml index 333009e5c4..4f22493086 100644 --- a/.github/workflows/test_qlib_from_source.yml +++ b/.github/workflows/test_qlib_from_source.yml @@ -162,5 +162,4 @@ jobs: command: | if ${{ matrix.os == 'windows-latest' }}; then set PYTHONPATH=%PYTHONPATH%;%cd%; else export PYTHONPATH=$PYTHONPATH:$(pwd); fi python -c "import sys; print(sys.path)" - cd tests - python -m pytest . -m "not slow" --durations=0 + python -m pytest ./tests -m "not slow" --durations=0 diff --git a/.github/workflows/test_qlib_from_source_slow.yml b/.github/workflows/test_qlib_from_source_slow.yml index 7d71d53a3f..ba66a8dc65 100644 --- a/.github/workflows/test_qlib_from_source_slow.yml +++ b/.github/workflows/test_qlib_from_source_slow.yml @@ -58,5 +58,4 @@ jobs: command: | if ${{ matrix.os == 'windows-latest '}}; then set PYTHONPATH=%PYTHONPATH%;%cd%; else export PYTHONPATH=$PYTHONPATH:$(pwd); fi python -c "import sys; print(sys.path)" - cd tests - python -m pytest . -m "slow" --durations=0 + python -m pytest ./tests -m "slow" --durations=0 From 098c9dd0f22cb5d6cda4d8b4b9352c65d982b7a5 Mon Sep 17 00:00:00 2001 From: Cadenza-Li <128388363+Fivele-Li@users.noreply.github.com> Date: Wed, 10 May 2023 10:43:01 +0800 Subject: [PATCH 14/14] remove set env --- .github/workflows/test_qlib_from_source.yml | 2 -- .github/workflows/test_qlib_from_source_slow.yml | 2 -- 2 files changed, 4 deletions(-) diff --git a/.github/workflows/test_qlib_from_source.yml b/.github/workflows/test_qlib_from_source.yml index 4f22493086..2b8d2837df 100644 --- a/.github/workflows/test_qlib_from_source.yml +++ b/.github/workflows/test_qlib_from_source.yml @@ -160,6 +160,4 @@ jobs: timeout_minutes: 60 max_attempts: 3 command: | - if ${{ matrix.os == 'windows-latest' }}; then set PYTHONPATH=%PYTHONPATH%;%cd%; else export PYTHONPATH=$PYTHONPATH:$(pwd); fi - python -c "import sys; print(sys.path)" python -m pytest ./tests -m "not slow" --durations=0 diff --git a/.github/workflows/test_qlib_from_source_slow.yml b/.github/workflows/test_qlib_from_source_slow.yml index ba66a8dc65..9d1a6c68f3 100644 --- a/.github/workflows/test_qlib_from_source_slow.yml +++ b/.github/workflows/test_qlib_from_source_slow.yml @@ -56,6 +56,4 @@ jobs: timeout_minutes: 240 max_attempts: 3 command: | - if ${{ matrix.os == 'windows-latest '}}; then set PYTHONPATH=%PYTHONPATH%;%cd%; else export PYTHONPATH=$PYTHONPATH:$(pwd); fi - python -c "import sys; print(sys.path)" python -m pytest ./tests -m "slow" --durations=0