diff --git a/.github/workflows/test_qlib_from_source.yml b/.github/workflows/test_qlib_from_source.yml index 90b8b63dd..6420cee3f 100644 --- a/.github/workflows/test_qlib_from_source.yml +++ b/.github/workflows/test_qlib_from_source.yml @@ -14,7 +14,7 @@ jobs: runs-on: ${{ matrix.os }} strategy: matrix: - os: [macos-11, macos-latest] + os: [windows-latest, macos-11] # not supporting 3.6 due to annotations is not supported https://stackoverflow.com/a/52890129 python-version: [3.7, 3.8] @@ -26,24 +26,26 @@ jobs: # So we make the version number of python 3.7 for MacOS more specific. # refs: https://github.com/actions/setup-python/issues/682 - name: Set up Python ${{ matrix.python-version }} - if: (matrix.os == 'macos-latest' && matrix.python-version == '3.7') || (matrix.os == 'macos-11' && matrix.python-version == '3.7') + if: matrix.os == 'macos-11' && matrix.python-version == '3.7' uses: actions/setup-python@v2 with: python-version: "3.7.16" - - name: Set up Python ${{ matrix.python-version }} - if: (matrix.os == 'macos-latest' && matrix.python-version == '3.8') || (matrix.os == 'macos-11' && matrix.python-version == '3.8') + if: matrix.os == 'macos-11' && matrix.python-version == '3.8' uses: actions/setup-python@v2 with: python-version: "3.8.16" - - name: Set up Python ${{ matrix.python-version }} - if: matrix.os != 'macos-latest' && matrix.os != 'macos-11' + if: matrix.os != 'macos-11' uses: actions/setup-python@v2 with: python-version: ${{ matrix.python-version }} + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install setuptools wheel twine - - name: Set up Python tools + - name: Build wheel on ${{ matrix.os }} run: | python -m pip install "numpy<1.24.0" python -m pip install cython==0.29.36