Skip to content

Commit d01bd3e

Browse files
authored
fix: pin Python to 3.12 (#362)
As of Ubuntu 24.04 LTS, the default version of Python is 3.12. Whereas, Ubuntu 22.04 LTS used Python 3.10, which is reaching End-of-Life next week. This should helps us control upgrades to Python version while some dependencies, namely `pygit2`, need extra time to add support for the new Python versions. * bump uv version * remove duplicate/faulty CI trigger
1 parent b6b607e commit d01bd3e

File tree

4 files changed

+15
-14
lines changed

4 files changed

+15
-14
lines changed

.github/workflows/self-test.yml

Lines changed: 13 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -5,23 +5,26 @@ on:
55
branches: [main]
66
paths:
77
- 'action.yml'
8-
- 'requirements.txt'
8+
- '.python-version'
9+
- 'uv.lock'
910
- 'docs/examples/demo/**'
1011
- '.github/workflows/self-test.yml'
1112
pull_request:
12-
branches: main
13-
paths:
14-
- 'action.yml'
15-
- 'requirements.txt'
16-
- 'docs/examples/demo/**'
17-
- '.github/workflows/self-test.yml'
18-
pull_request_target:
19-
branches: main
13+
branches: [main]
2014
paths:
2115
- 'action.yml'
22-
- 'requirements.txt'
16+
- '.python-version'
17+
- 'uv.lock'
2318
- 'docs/examples/demo/**'
2419
- '.github/workflows/self-test.yml'
20+
# pull_request_target:
21+
# branches: [main]
22+
# paths:
23+
# - 'action.yml'
24+
# - '.python-version'
25+
# - 'uv.lock'
26+
# - 'docs/examples/demo/**'
27+
# - '.github/workflows/self-test.yml'
2528

2629
jobs:
2730
test:

.gitignore

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -91,9 +91,6 @@ target/
9191
profile_default/
9292
ipython_config.py
9393

94-
# pyenv
95-
.python-version
96-
9794
# pipenv
9895
# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
9996
# However, in case of collaboration, if having platform-specific dependencies or dependencies

.python-version

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
3.12

action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -337,7 +337,7 @@ runs:
337337
shell: nu {0}
338338
env:
339339
UV_NO_MODIFY_PATH: 1
340-
UV_VERSION: '0.8.11'
340+
UV_VERSION: '0.9.5'
341341
run: |-
342342
let action_path = $env.GITHUB_ACTION_PATH | path expand
343343
$env.UV_INSTALL_DIR = $action_path | path join 'bin'

0 commit comments

Comments
 (0)