Skip to content

Commit eb2b829

Browse files
committed
NO-JIRA: install python according to .python-version file (#2764)
``` Run bash ci/generate_code.sh + uv --version ci/generate_code.sh: line 4: uv: command not found + pip install uv==0.9.6 Defaulting to user installation because normal site-packages is not writeable Collecting uv==0.9.6 Downloading uv-0.9.6-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (11 kB) Downloading uv-0.9.6-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (21.4 MB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 21.4/21.4 MB 137.9 MB/s eta 0:00:00 Installing collected packages: uv Successfully installed uv-0.9.6 + python3 scripts/dockerfile_fragments.py File "/home/runner/work/notebooks/notebooks/scripts/dockerfile_fragments.py", line 69 "upgrade first to avoid fixable vulnerabilities": textwrap.dedent(ntb.process_template_with_indents(rt""" ^^^ SyntaxError: invalid syntax Error: Process completed with exit code 1. ``` https://github.com/opendatahub-io/notebooks/actions/runs/20073940406/job/57583254538?pr=2760
1 parent 89f9356 commit eb2b829

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

.github/workflows/code-quality.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,10 @@ jobs:
1414
steps:
1515
- uses: actions/checkout@v5
1616

17+
- uses: actions/setup-python@v5
18+
with:
19+
python-version-file: '.python-version'
20+
1721
- name: Rerun all code generators we have
1822
run: bash ci/generate_code.sh
1923

.github/workflows/sec-scan.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ jobs:
9696
- name: setup python
9797
uses: actions/setup-python@v5
9898
with:
99-
python-version: '3.10' # install the python version needed
99+
python-version-file: '.python-version'
100100

101101
- name: install python packages
102102
run: |

0 commit comments

Comments
 (0)