Skip to content

Commit

Permalink
Merge pull request #23715 from ivotron/fix-python-actions
Browse files Browse the repository at this point in the history
gha: fix pip install on python actions
  • Loading branch information
ivotron authored Oct 10, 2024
2 parents b436177 + d2ec222 commit 80e3459
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 4 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/jira_issue_manage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,10 @@ jobs:
- name: install dependencies
env:
SCRIPT_DIR: ${{ github.workspace }}/.github/workflows/scripts
run: pip install -r ${SCRIPT_DIR}/requirements.txt
run: |
python3 -mvenv /tmp/venv/jira
source /tmp/venv/jira/bin/activate
pip install -r ${SCRIPT_DIR}/requirements.txt
- name: install pandoc
run: sudo apt-get update && sudo apt-get install -y pandoc
- uses: aws-actions/configure-aws-credentials@v4
Expand All @@ -49,4 +52,4 @@ jobs:
ISSUE_LABELS: ${{ join(github.event.issue.labels.*.name) }}
ISSUE_STATE: ${{ github.event.issue.state }}
EVENT_NAME: ${{ github.event.action }}
run: python ${SCRIPT_DIR}/jira_helper.py ISSUE --verbose -p CORE
run: /tmp/venv/jira/bin/python ${SCRIPT_DIR}/jira_helper.py ISSUE --verbose -p CORE
10 changes: 8 additions & 2 deletions .github/workflows/lint-python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,12 @@ jobs:
- name: Checkout code
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: |
python3 -mvenv /tmp/env/yapf
source /tmp/venv/yapf/bin/activate
find . -type f -name '*.py' | xargs -n8 yapf -d
2 changes: 2 additions & 0 deletions .github/workflows/transform-sdk-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,8 @@ jobs:
- name: Publish
working-directory: src/transform-sdk/rust
run: |
python3 -mvenv /tmp/venv/publish
source /tmp/venv/publish/bin/activate
pip install tomlkit
./scripts/publish.py --version ${{github.ref_name}}
env:
Expand Down

0 comments on commit 80e3459

Please sign in to comment.