Skip to content

Commit aa952af

Browse files
ci: Update setup-python to v5 and add Python version verification
1 parent 4deadd3 commit aa952af

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

.github/workflows/release.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,10 @@ jobs:
1818
submodules: 'recursive'
1919

2020
- name: Set up Python
21-
uses: actions/setup-python@v4
21+
uses: actions/setup-python@v5
2222
with:
2323
python-version: '3.10'
24+
cache: 'pip'
2425

2526
- name: Install uv
2627
run: |
@@ -43,6 +44,11 @@ jobs:
4344
id: get_version
4445
run: echo "VERSION=${GITHUB_REF#refs/tags/v}" >> $GITHUB_OUTPUT
4546

47+
- name: Verify Python version
48+
run: |
49+
python --version
50+
python -c "import sys; assert sys.version_info >= (3, 10), f'Python {sys.version} is not >= 3.10'"
51+
4652
- name: Create Release Notes
4753
id: release_notes
4854
run: |

0 commit comments

Comments
 (0)