From e71ee221f9bc1d21eaa169b707df32f42b1dc4a7 Mon Sep 17 00:00:00 2001 From: Linlang Date: Tue, 5 Mar 2024 23:00:56 +0800 Subject: [PATCH] test fix CI error --- .github/workflows/test_qlib_from_source.yml | 8 +++++++- .github/workflows/test_qlib_from_source_slow.yml | 6 ------ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/workflows/test_qlib_from_source.yml b/.github/workflows/test_qlib_from_source.yml index 9205a13641..123cfe1fb2 100644 --- a/.github/workflows/test_qlib_from_source.yml +++ b/.github/workflows/test_qlib_from_source.yml @@ -22,6 +22,12 @@ jobs: - name: Test qlib from source uses: actions/checkout@v3 + - name: Set up Python ${{ matrix.python-version }} + if: (matrix.python-version == '3.8') + 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". # So we make the version number of python 3.7 for MacOS more specific. # refs: https://github.com/actions/setup-python/issues/682 @@ -32,7 +38,7 @@ jobs: python-version: "3.7.16" - 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-latest' && matrix.python-version == '3.7') uses: actions/setup-python@v4 with: python-version: ${{ matrix.python-version }} diff --git a/.github/workflows/test_qlib_from_source_slow.yml b/.github/workflows/test_qlib_from_source_slow.yml index d36d217adf..caab6f444e 100644 --- a/.github/workflows/test_qlib_from_source_slow.yml +++ b/.github/workflows/test_qlib_from_source_slow.yml @@ -37,12 +37,6 @@ jobs: with: python-version: ${{ matrix.python-version }} - - name: Set up Python ${{ matrix.python-version }} - if: (matrix.python-version != '3.8') - uses: actions/setup-python@v4 - with: - python-version: "3.8.17" - - name: Set up Python tools run: | python -m pip install --upgrade pip