CI: use a venv for the linux jobs

To gain more isolation from the host
This commit is contained in:
Christoph Reiter 2025-03-09 19:26:37 +01:00
parent 4413e41389
commit a2ebb72da0
2 changed files with 8 additions and 2 deletions

View File

@ -57,7 +57,10 @@ jobs:
env: env:
PIP_DISABLE_PIP_VERSION_CHECK: 1 PIP_DISABLE_PIP_VERSION_CHECK: 1
run: | run: |
python -m pip install --user -r requirements.txt python -m venv .venv
source .venv/bin/activate
python -m pip install -r requirements.txt
echo "$VIRTUAL_ENV/bin" >> $GITHUB_PATH
- name: autobuild cache - name: autobuild cache
uses: actions/cache@v4 uses: actions/cache@v4

View File

@ -54,7 +54,10 @@ jobs:
env: env:
PIP_DISABLE_PIP_VERSION_CHECK: 1 PIP_DISABLE_PIP_VERSION_CHECK: 1
run: | run: |
python -m pip install --user -r requirements.txt python -m venv .venv
source .venv/bin/activate
python -m pip install -r requirements.txt
echo "$VIRTUAL_ENV/bin" >> $GITHUB_PATH
- name: Clear failed build types - name: Clear failed build types
if: ${{ github.event.inputs.clear_failed_build_types != '' }} if: ${{ github.event.inputs.clear_failed_build_types != '' }}