diff --git a/.github/workflows/build_uncrustify.yml b/.github/workflows/build_uncrustify.yml index 1e1d7a8..e405ae2 100644 --- a/.github/workflows/build_uncrustify.yml +++ b/.github/workflows/build_uncrustify.yml @@ -21,6 +21,8 @@ jobs: - name: Install Dependencies run: | + python3 -m venv ~/pyenv + source ~/pyenv/bin/activate python3 -m pip install -r requirements.txt - name: CI Bootstrap @@ -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 diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 187d224..0e7f148 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 -r requirements.txt - 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