diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 737966168..5530946e7 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -26,9 +26,13 @@ jobs: - name: Lint with Black run: | if [ "$RUNNER_OS" == "Windows" ]; then + python.exe -m pip install pip --upgrade + python.exe -m pip install wheel --upgrade python.exe -m pip install black python.exe -m black qlib -l 120 --check --diff else + python -m pip install pip --upgrade + python -m pip install wheel --upgrade python -m pip install black python -m black qlib -l 120 --check --diff fi diff --git a/.github/workflows/test_macos.yml b/.github/workflows/test_macos.yml index 4511c2afe..8a47b4358 100644 --- a/.github/workflows/test_macos.yml +++ b/.github/workflows/test_macos.yml @@ -26,6 +26,8 @@ jobs: - name: Lint with Black run: | cd .. + python -m pip install pip --upgrade + python -m pip install wheel --upgrade python -m pip install black python -m black qlib -l 120 --check --diff # Test Qlib installed with pip