mirror of
https://github.com/microsoft/qlib.git
synced 2026-07-15 16:56:54 +08:00
test fix CI error
This commit is contained in:
20
.github/workflows/test_qlib_from_source.yml
vendored
20
.github/workflows/test_qlib_from_source.yml
vendored
@@ -22,18 +22,6 @@ jobs:
|
|||||||
- name: Test qlib from source
|
- name: Test qlib from source
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
- name: Set up Python ${{ matrix.python-version }}
|
|
||||||
if: (matrix.python-version == '3.8' && matrix.os == 'windows-latest')
|
|
||||||
uses: actions/setup-python@v4
|
|
||||||
with:
|
|
||||||
python-version: "3.8.10"
|
|
||||||
|
|
||||||
- name: Set up Python ${{ matrix.python-version }}
|
|
||||||
if: (matrix.python-version == '3.8' && matrix.os != 'windows-latest')
|
|
||||||
uses: actions/setup-python@v4
|
|
||||||
with:
|
|
||||||
python-version: "3.8.17"
|
|
||||||
|
|
||||||
# Since version 3.7 of python for MacOS is installed in CI, version 3.7.17, this version causes "_bz not found error".
|
# Since version 3.7 of python for MacOS is installed in CI, version 3.7.17, this version causes "_bz not found error".
|
||||||
# So we make the version number of python 3.7 for MacOS more specific.
|
# So we make the version number of python 3.7 for MacOS more specific.
|
||||||
# refs: https://github.com/actions/setup-python/issues/682
|
# refs: https://github.com/actions/setup-python/issues/682
|
||||||
@@ -44,7 +32,7 @@ jobs:
|
|||||||
python-version: "3.7.16"
|
python-version: "3.7.16"
|
||||||
|
|
||||||
- name: Set up Python ${{ matrix.python-version }}
|
- name: Set up Python ${{ matrix.python-version }}
|
||||||
if: (matrix.os != 'macos-latest' && matrix.python-version == '3.7')
|
if: (matrix.os != 'macos-latest' || matrix.python-version != '3.7') && (matrix.os != 'macos-11' || matrix.python-version != '3.7')
|
||||||
uses: actions/setup-python@v4
|
uses: actions/setup-python@v4
|
||||||
with:
|
with:
|
||||||
python-version: ${{ matrix.python-version }}
|
python-version: ${{ matrix.python-version }}
|
||||||
@@ -72,6 +60,12 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
python -m pip install --upgrade cython
|
python -m pip install --upgrade cython
|
||||||
python -m pip install -e .[dev]
|
python -m pip install -e .[dev]
|
||||||
|
python -m pip install Mako==1.3.0
|
||||||
|
python -m pip install gitpython==3.1.40
|
||||||
|
python -m pip install importlib-resources==6.1.1
|
||||||
|
python -m pip install prometheus-client==0.19.0
|
||||||
|
python -m pip install python-dateutil==2.8.2
|
||||||
|
python -m pip install sqlalchemy==1.4.51
|
||||||
|
|
||||||
- name: Lint with Black
|
- name: Lint with Black
|
||||||
# Python 3.7 will use a black with low level. So we use python with higher version for black check
|
# Python 3.7 will use a black with low level. So we use python with higher version for black check
|
||||||
|
|||||||
Reference in New Issue
Block a user