From 206e5b9aad2395f7dfcbb8c97e4db3749975799e Mon Sep 17 00:00:00 2001 From: Joshua Haberman Date: Mon, 23 Aug 2021 18:23:16 -0700 Subject: [PATCH] Run Python tests under a venv. --- .github/workflows/bazel_tests.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/bazel_tests.yml b/.github/workflows/bazel_tests.yml index c4122cc124..6f52f0e7bf 100644 --- a/.github/workflows/bazel_tests.yml +++ b/.github/workflows/bazel_tests.yml @@ -26,5 +26,7 @@ jobs: steps: - uses: actions/checkout@v2 + - name: Setup Python venv + run: rm -rf /tmp/venv && python3 -m venv /tmp/venv && export PATH=/tmp/venv/bin:$PATH - name: Run tests run: cd ${{ github.workspace }} && CC=${{ matrix.CC }} bazel test --test_output=errors ... ${{ matrix.flags }}