]> git.ipfire.org Git - thirdparty/zlib-ng.git/commitdiff
Switch to python venv
authorVladislav Shchapov <vladislav@shchapov.ru>
Fri, 3 May 2024 12:27:06 +0000 (17:27 +0500)
committerHans Kristian Rosbach <hk-github@circlestorm.org>
Mon, 6 May 2024 20:50:52 +0000 (22:50 +0200)
Signed-off-by: Vladislav Shchapov <vladislav@shchapov.ru>
.github/workflows/cmake.yml

index a27443227a147883981a8e9a7012afa0163953fc..93ed9b19b2e36cc860e6e550e7b31118dda12d35 100644 (file)
@@ -712,7 +712,9 @@ jobs:
       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' }}" \