Skip to content

Commit

Permalink
Build: Move pip installs to Python venv
Browse files Browse the repository at this point in the history
Required due to brew adopting PEP 668
https://github.com/orgs/Homebrew/discussions/3404
  • Loading branch information
mikebeaton committed May 1, 2024
1 parent aed6fc6 commit 7ec932f
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
9 changes: 9 additions & 0 deletions .github/workflows/build_uncrustify.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ jobs:

- name: Install Dependencies
run: |
python3 -m venv ~/pyenv
source ~/pyenv/bin/activate
python3 -m pip install gitpython requests pyyaml
- name: CI Bootstrap
Expand All @@ -29,6 +31,7 @@ jobs:
- name: Build Uncrustify
run: |
source ~/pyenv/bin/activate
cd uncstrap && python3 ./uncstrap.py -b
echo "UNC_SHA=$(cat unc-sha.txt)" >> $GITHUB_ENV
Expand All @@ -49,6 +52,8 @@ jobs:
run: |
sudo apt-get update
sudo apt-get install cmake curl git
python3 -m venv ~/pyenv
source ~/pyenv/bin/activate
sudo python3 -m pip install gitpython requests pyyaml
- name: CI Bootstrap
Expand All @@ -57,6 +62,7 @@ jobs:
- name: Build Uncrustify
run: |
source ~/pyenv/bin/activate
cd uncstrap && python3 ./uncstrap.py -b
echo "UNC_SHA=$(cat unc-sha.txt)" >> $GITHUB_ENV
Expand All @@ -79,6 +85,8 @@ jobs:
- name: Install Dependencies
run: |
choco install cmake make --no-progress
python3 -m venv ~/pyenv
source ~/pyenv/bin/activate
python3 -m pip install gitpython requests pyyaml
- name: CI Bootstrap
Expand All @@ -87,6 +95,7 @@ jobs:
- name: Build Uncrustify
run: |
source ~/pyenv/bin/activate
cd uncstrap && python3 ./uncstrap.py -b
echo "UNC_SHA=$(cat unc-sha.txt)" >> $GITHUB_ENV
Expand Down
6 changes: 5 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 7ec932f

Please sign in to comment.