From a2ebb72da09cd48e316adb794d8871c5d065ebaa Mon Sep 17 00:00:00 2001 From: Christoph Reiter Date: Sun, 9 Mar 2025 19:26:37 +0100 Subject: [PATCH] CI: use a venv for the linux jobs To gain more isolation from the host --- .github/workflows/build.yml | 5 ++++- .github/workflows/maint.yml | 5 ++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index efff5d8..d02efc5 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -57,7 +57,10 @@ jobs: env: PIP_DISABLE_PIP_VERSION_CHECK: 1 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 uses: actions/cache@v4 diff --git a/.github/workflows/maint.yml b/.github/workflows/maint.yml index 0203a74..0e7dce4 100644 --- a/.github/workflows/maint.yml +++ b/.github/workflows/maint.yml @@ -54,7 +54,10 @@ jobs: env: PIP_DISABLE_PIP_VERSION_CHECK: 1 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 if: ${{ github.event.inputs.clear_failed_build_types != '' }}