From f095792231f70d8dbccf70d61cb36ec2209fcb13 Mon Sep 17 00:00:00 2001 From: Linlang Date: Tue, 5 Mar 2024 23:29:20 +0800 Subject: [PATCH] test fix CI error --- .github/workflows/test_qlib_from_source.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test_qlib_from_source.yml b/.github/workflows/test_qlib_from_source.yml index cc17fddb82..adef6d99f3 100644 --- a/.github/workflows/test_qlib_from_source.yml +++ b/.github/workflows/test_qlib_from_source.yml @@ -23,11 +23,17 @@ jobs: uses: actions/checkout@v3 - name: Set up Python ${{ matrix.python-version }} - if: (matrix.python-version == '3.8') + 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". # So we make the version number of python 3.7 for MacOS more specific. # refs: https://github.com/actions/setup-python/issues/682