diff --git a/.github/workflows/lint-python.yml b/.github/workflows/lint-python.yml index 891a488cf92f6..9ad08c9484a3d 100644 --- a/.github/workflows/lint-python.yml +++ b/.github/workflows/lint-python.yml @@ -22,7 +22,10 @@ jobs: uses: actions/checkout@v4 - name: Install yapf - run: pip install yapf==0.40.1 + run: | + python3 -mvenv /tmp/venv/yapf + source /tmp/venv/yapf/bin/activate + pip install yapf==0.40.1 - name: Run yapf - run: find . -type f -name '*.py' | xargs -n8 yapf -d + run: find . -type f -name '*.py' | xargs -n8 /tmp/venv/yapf/bin/yapf -d diff --git a/.github/workflows/render-pr-body-release-notes.yml b/.github/workflows/render-pr-body-release-notes.yml index 10ad2a4120eaf..f2360f1bd14c5 100644 --- a/.github/workflows/render-pr-body-release-notes.yml +++ b/.github/workflows/render-pr-body-release-notes.yml @@ -26,12 +26,16 @@ jobs: with: python-version: '3.10' cache: 'pip' - - run: pip3 install -r ./rpchangelog/requirements.txt + - run: | + python3 -mvenv /tmp/venv/rpcl + source /tmp/venv/rpcl/bin/activate + pip3 install -r ./rpchangelog/requirements.txt - name: Render PR body release notes to job summary env: PR_NUM: ${{ github.event.number }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} run: | + source /tmp/venv/rpcl/bin/activate ./rpchangelog/rpchangelog.py --log-level=DEBUG --github-owner="$GITHUB_REPOSITORY_OWNER" pr "$PR_NUM" >> "$GITHUB_STEP_SUMMARY" LINK_TO_SUMMARY="$GITHUB_SERVER_URL/$GITHUB_REPOSITORY/actions/runs/$GITHUB_RUN_ID" FINAL_MSG="View rendered release notes of PR #$PR_NUM in the job summary: $LINK_TO_SUMMARY"