Skip to content

Commit 4572ecb

Browse files
committed
Replace PYTHON_VERSION with python-version-file: ".python-version"
1 parent b8b52ff commit 4572ecb

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ on: [push, pull_request]
44

55
env:
66
UV_VERSION: "0.6.9"
7-
PYTHON_VERSION: "3.11"
87

98
jobs:
109
test:
@@ -42,7 +41,7 @@ jobs:
4241
- name: Set up Python
4342
uses: actions/setup-python@v5
4443
with:
45-
python-version: ${{ env.PYTHON_VERSION }}
44+
python-version-file: ".python-version"
4645
- name: Install dependencies
4746
run: uv sync --locked
4847
- name: Test with Nox
@@ -58,6 +57,6 @@ jobs:
5857
- name: Set up Python
5958
uses: actions/setup-python@v5
6059
with:
61-
python-version: ${{ env.PYTHON_VERSION }}
60+
python-version-file: ".python-version"
6261
- name: Validate Lockfile Up-to-date
6362
run: uv lock --check

.github/workflows/pages.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ on:
99

1010
env:
1111
UV_VERSION: "0.6.9"
12-
PYTHON_VERSION: "3.11"
1312

1413
jobs:
1514
deploy:
@@ -22,7 +21,7 @@ jobs:
2221
version: ${{ env.UV_VERSION }}
2322
- uses: actions/setup-python@v5
2423
with:
25-
python-version: ${{ env.PYTHON_VERSION }}
24+
python-version-file: ".python-version"
2625
- name: Install dependencies
2726
run: uv sync --locked
2827
- name: Publish Docs

0 commit comments

Comments
 (0)