From ef308f2f9805f91f1dc48a82f0e46a1dbd728ab8 Mon Sep 17 00:00:00 2001 From: Zhonghao Zhao Date: Mon, 12 Feb 2024 12:31:36 -0800 Subject: [PATCH] fix tox installation. --- .github/workflows/pr_build.yml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/.github/workflows/pr_build.yml b/.github/workflows/pr_build.yml index e1339c751..28ca81246 100644 --- a/.github/workflows/pr_build.yml +++ b/.github/workflows/pr_build.yml @@ -28,7 +28,15 @@ jobs: - name: Install libsnappy-dev if: ${{ matrix.tox-environment == 'lint' }} - run: sudo apt-get install -y libsnappy-dev + run: | + sudo apt-get install -y libsnappy-dev + if [[ matrix.os == ubuntu-latest ]]; then + sudo apt-get update && sudo apt-get install -y libsnappy-dev + elif [[ matrix.os == macos-latest ]]; then + brew install snappy + elif [[ matrix.os == windows-latest ]]; then + choco install snappy + fi - name: Build Wheel and Image Files uses: ./.github/actions/artifacts_build