Skip to content

Commit 41eff8e

Browse files
authored
ci: remove setup-python (#1409)
* ci: remove setup-python where possible * Remove more
1 parent 74007f6 commit 41eff8e

File tree

3 files changed

+7
-25
lines changed

3 files changed

+7
-25
lines changed

.github/workflows/ci.yml

Lines changed: 5 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -54,10 +54,6 @@ jobs:
5454
name: Packages
5555
path: dist
5656
- run: tar xf dist/*.tar.gz --strip-components=1
57-
- uses: actions/setup-python@v5
58-
with:
59-
python-version: ${{ matrix.python-version }}
60-
allow-prereleases: true
6157
- uses: hynek/setup-cached-uv@v2
6258

6359
- name: Prepare tox
@@ -116,10 +112,6 @@ jobs:
116112
- run: |
117113
tar xf dist/*.tar.gz --strip-components=1
118114
rm -rf src # ensure tests run against wheel
119-
- uses: actions/setup-python@v5
120-
with:
121-
python-version: ${{ matrix.python-version }}
122-
allow-prereleases: true
123115
- uses: hynek/setup-cached-uv@v2
124116

125117
- run: >
@@ -140,9 +132,6 @@ jobs:
140132
name: Packages
141133
path: dist
142134
- run: tar xf dist/*.tar.gz --strip-components=1
143-
- uses: actions/setup-python@v5
144-
with:
145-
python-version-file: .python-version-default
146135
- uses: hynek/setup-cached-uv@v2
147136

148137
- name: Download coverage data
@@ -153,7 +142,7 @@ jobs:
153142

154143
- name: Combine coverage & fail if it's <100%.
155144
run: |
156-
uv tool install coverage
145+
uv tool install --python $(cat .python-version-default) coverage
157146
158147
coverage combine
159148
coverage html --skip-covered --skip-empty
@@ -182,10 +171,6 @@ jobs:
182171
name: Packages
183172
path: dist
184173
- run: tar xf dist/*.tar.gz --strip-components=1
185-
- uses: actions/setup-python@v5
186-
with:
187-
# Keep in sync with tox/docs and .readthedocs.yaml.
188-
python-version: "3.13"
189174
- uses: hynek/setup-cached-uv@v2
190175

191176
- run: uvx --with=tox-uv tox run -e docs-doctests,changelog
@@ -197,12 +182,12 @@ jobs:
197182
- uses: actions/checkout@v4
198183
with:
199184
persist-credentials: false
200-
- uses: actions/setup-python@v5
201-
with:
202-
python-version-file: .python-version-default
203185
- uses: hynek/setup-cached-uv@v2
204186

205-
- run: uvx --with=tox-uv tox run -e pyright
187+
- run: >
188+
uvx --with=tox-uv
189+
--python $(cat .python-version-default)
190+
tox run -e pyright
206191
207192
install-dev:
208193
name: Verify dev env
@@ -212,9 +197,6 @@ jobs:
212197
- uses: actions/checkout@v4
213198
with:
214199
persist-credentials: false
215-
- uses: actions/setup-python@v5
216-
with:
217-
python-version-file: .python-version-default
218200
- uses: hynek/setup-cached-uv@v2
219201

220202
- run: uv venv --python $(cat .python-version-default)

.readthedocs.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ version: 2
44
build:
55
os: ubuntu-lts-latest
66
tools:
7-
# Keep version in sync with tox.ini/docs and ci.yml/docs.
7+
# Keep version in sync with tox.ini/docs.
88
python: "3.13"
99
jobs:
1010
create_environment:

tox.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ commands = pytest --codspeed -n auto bench/test_benchmarks.py
6565

6666

6767
[testenv:docs-{build,doctests,linkcheck}]
68-
# Keep base_python in sync with ci.yml/docs and .readthedocs.yaml.
68+
# Keep base_python in sync with .readthedocs.yaml.
6969
base_python = py313
7070
extras = docs
7171
commands =

0 commit comments

Comments
 (0)