Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[v23.3.x] gha: fix pip install on python actions #23778

Merged
merged 1 commit into from
Oct 14, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions .github/workflows/lint-python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
6 changes: 5 additions & 1 deletion .github/workflows/render-pr-body-release-notes.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
Loading