From 770a725b6d1dc40d9809e2fa82b91798db607ee6 Mon Sep 17 00:00:00 2001 From: Mike Beaton Date: Wed, 1 May 2024 20:41:23 +0100 Subject: [PATCH] Build: Move pip installs to Python venv Required due to brew adopting PEP 668 https://github.com/orgs/Homebrew/discussions/3404 --- .github/workflows/main.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 0fcbb7c..daf4faa 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -35,10 +35,14 @@ jobs: - name: Install Dependencies run: | + python3 -m venv ~/pyenv + source ~/pyenv/bin/activate python3 -m pip install gitpython prospector pyyaml requests - name: Run prospector - run: python3 -m prospector . -P ./prospector/profile.yml > prospector_result.txt || exit 1 + run: | + source ~/pyenv/bin/activate + python3 -m prospector . -P ./prospector/profile.yml > prospector_result.txt || exit 1 - name: Upload prospector result to Artifacts uses: actions/upload-artifact@v3