Skip to content

Commit c9b0fee

Browse files
committed
.github: update python version in render worflow
The script has an explicit dependency on ghapi package that implicitly depends on fastcore and fetches the latest. Any python version older than 3.12 leads to a failure while importing the package in the script with the below error: ``` Traceback (most recent call last): File "/home/runner/work/redpanda/redpanda/./rpchangelog/rpchangelog.py", line 10, in <module> from ghapi.all import GhApi File "/opt/hostedtoolcache/Python/3.10.19/x64/lib/python3.10/site-packages/ghapi/all.py", line 1, in <module> from .core import * File "/opt/hostedtoolcache/Python/3.10.19/x64/lib/python3.10/site-packages/ghapi/core.py", line 9, in <module> from fastcore.all import * File "/opt/hostedtoolcache/Python/3.10.19/x64/lib/python3.10/site-packages/fastcore/all.py", line 9, in <module> from .script import * File "/opt/hostedtoolcache/Python/3.10.19/x64/lib/python3.10/site-packages/fastcore/script.py", line 15, in <module> from .docments import docments File "/opt/hostedtoolcache/Python/3.10.19/x64/lib/python3.10/site-packages/fastcore/docments.py", line 359 sig_str = f"def {get_name(self.obj)}(\n {'\n '.join(lines)}\n{self._ret_str}" ```
1 parent cf76067 commit c9b0fee

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

.github/workflows/render-pr-body-release-notes.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
chmod +x rpchangelog/rpchangelog.py
2525
- uses: actions/setup-python@v5
2626
with:
27-
python-version: '3.10'
27+
python-version: '3.12'
2828
cache: 'pip'
2929
- run: pip3 install -r ./rpchangelog/requirements.txt
3030
- name: Render PR body release notes to job summary

0 commit comments

Comments
 (0)