Switch to python venv

Signed-off-by: Vladislav Shchapov <vladislav@shchapov.ru>
GitOrigin-RevId: 13d17a36f96c5dfa90570c1703a9098ebd67b4cd
Change-Id: Ia64f820f924d1fc7b188d6e6c921d76802298bcc
diff --git a/.github/workflows/cmake.yml b/.github/workflows/cmake.yml
index a274432..93ed9b1 100644
--- a/.github/workflows/cmake.yml
+++ b/.github/workflows/cmake.yml
@@ -712,7 +712,9 @@
       if: matrix.codecov
       shell: bash
       run: |
-        python3 -u -m pip install --user gcovr==5.0
+        python3 -u -m venv ${{ matrix.build-dir || '.' }}/venv
+        source ${{ matrix.build-dir || '.' }}/venv/${{ runner.os == 'Windows' && 'Scripts' || 'bin' }}/activate
+        python3 -u -m pip install gcovr==5.0
         python3 -m gcovr ${{ matrix.build-dir || '' }} -j 3 --verbose \
           --exclude-unreachable-branches \
           --gcov-executable "${{ matrix.gcov-exec || 'gcov' }}" \