@@ -13,30 +13,17 @@ jobs:
1313 runs-on : ${{ matrix.os }}
1414 strategy :
1515 matrix :
16- # Since macos-latest changed from 12.7.4 to 14.4.1,
17- # the minimum python version that matches a 14.4.1 version of macos is 3.10,
18- # If you want to use python 3.7 in github action, then the latest macos system version is macos-13,
19- # after macos-13 python 3.7 is no longer supported.
20- # so we limit the macos version to macos-13.
21- os : [windows-latest, ubuntu-20.04, ubuntu-22.04, macos-13]
22- # not supporting 3.6 due to annotations is not supported https://stackoverflow.com/a/52890129
23- python-version : [3.7, 3.8]
16+ os : [windows-latest, ubuntu-20.04, ubuntu-22.04, macos-13, macos-14, macos-15]
17+ # In github action, using python 3.7, pip install will not match the latest version of the package.
18+ # Also, python 3.7 is no longer supported from macos-14, and will be phased out from macos-13 in the near future.
19+ # All things considered, we have removed python 3.7.
20+ python-version : ["3.8", "3.9", "3.10", "3.11", "3.12"]
2421
2522 steps :
2623 - name : Test qlib from pip
2724 uses : actions/checkout@v3
2825
29- # Since version 3.7 of python for MacOS is installed in CI, version 3.7.17, this version causes "_bz not found error".
30- # So we make the version number of python 3.7 for MacOS more specific.
31- # refs: https://github.com/actions/setup-python/issues/682
3226 - name : Set up Python ${{ matrix.python-version }}
33- if : (matrix.os == 'macos-latest' && matrix.python-version == '3.7') || (matrix.os == 'macos-13' && matrix.python-version == '3.7')
34- uses : actions/setup-python@v4
35- with :
36- python-version : " 3.7.16"
37-
38- - name : Set up Python ${{ matrix.python-version }}
39- if : (matrix.os != 'macos-latest' || matrix.python-version != '3.7') && (matrix.os != 'macos-13' || matrix.python-version != '3.7')
4027 uses : actions/setup-python@v4
4128 with :
4229 python-version : ${{ matrix.python-version }}
@@ -47,13 +34,10 @@ jobs:
4734
4835 - name : Qlib installation test
4936 run : |
50- # 2024-05-30 scs has released a new version: 3.2.4.post2,
51- # This will cause the CI to fail, so we have limited the version of scs for now.
52- python -m pip install "scs<=3.2.4"
53- python -m pip install pyqlib
37+ python -m pip install --index-url https://test.pypi.org/simple/ --extra-index-url https://pypi.org/simple/ pyqlib==0.9.5.80
5438
5539 - name : Install Lightgbm for MacOS
56- if : ${{ matrix.os == 'macos-13' || matrix.os == 'macos-latest ' }}
40+ if : ${{ matrix.os == 'macos-13' || matrix.os == 'macos-14' || matrix.os == 'macos-15 ' }}
5741 run : |
5842 /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Microsoft/qlib/main/.github/brew_install.sh)"
5943 HOMEBREW_NO_AUTO_UPDATE=1 brew install lightgbm
0 commit comments