diff --git a/.github/workflows/pre-commit.yaml b/.github/workflows/pre-commit.yaml index acdd7e8d..03769dc7 100644 --- a/.github/workflows/pre-commit.yaml +++ b/.github/workflows/pre-commit.yaml @@ -9,7 +9,10 @@ jobs: uses: actions/checkout@v4 - name: Setup pre-commit - run: python -m pip install pre-commit + run: | + python3 -m venv "$RUNNER_TEMP/venv" + echo "$RUNNER_TEMP/venv/bin" >> "$GITHUB_PATH" + "$RUNNER_TEMP/venv/bin/pip" install pre-commit - name: Cache pre-commit state uses: actions/cache@v4 diff --git a/.github/workflows/recipes_test.yaml b/.github/workflows/recipes_test.yaml index 64a59e74..146e09eb 100644 --- a/.github/workflows/recipes_test.yaml +++ b/.github/workflows/recipes_test.yaml @@ -9,7 +9,10 @@ jobs: uses: actions/checkout@v4 - name: Setup Bob - run: python -m pip install BobBuildTool + run: | + python3 -m venv "$RUNNER_TEMP/venv" + echo "$RUNNER_TEMP/venv/bin" >> "$GITHUB_PATH" + "$RUNNER_TEMP/venv/bin/pip" install BobBuildTool - name: Fetch layers run: bob -C tests/buildall layers update