diff --git a/.github/workflows/test_qlib_from_source.yml b/.github/workflows/test_qlib_from_source.yml index 7271287dcb..fec50211fe 100644 --- a/.github/workflows/test_qlib_from_source.yml +++ b/.github/workflows/test_qlib_from_source.yml @@ -41,7 +41,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 run: | - python -m pip install pip==23.0 + python -m pip install --upgrade pip - name: Installing pytorch for macos if: ${{ matrix.os == 'macos-11' || matrix.os == 'macos-latest' }} @@ -172,5 +172,4 @@ jobs: timeout_minutes: 60 max_attempts: 3 command: | - 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 1dfcc0179c..7447fe9077 100644 --- a/.github/workflows/test_qlib_from_source_slow.yml +++ b/.github/workflows/test_qlib_from_source_slow.yml @@ -41,7 +41,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 run: | - python -m pip install pip==23.0 + python -m pip install --upgrade pip pip install --upgrade cython numpy pip install -e .[dev] @@ -66,5 +66,4 @@ jobs: timeout_minutes: 240 max_attempts: 3 command: | - cd tests - python -m pytest . -m "slow" --durations=0 + python -m pytest ./tests -m "slow" --durations=0 diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 0000000000..6350d092c7 --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,2 @@ +[build-system] +requires = ["setuptools", "numpy", "Cython"]