Skip to content

Commit eb03230

Browse files
committed
ci: swap .python-version file for explicit versions in actions yml (#4462)
* ci: swap .python-version file for explicit versions in actions yml * pin valgrind job to 3.12.4
1 parent 968c8ee commit eb03230

File tree

5 files changed

+28
-3
lines changed

5 files changed

+28
-3
lines changed

.github/workflows/benches.yml

+2
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ jobs:
1919
steps:
2020
- uses: actions/checkout@v4
2121
- uses: actions/setup-python@v5
22+
with:
23+
python-version: '3.12'
2224
- uses: dtolnay/rust-toolchain@stable
2325
with:
2426
components: rust-src

.github/workflows/changelog.yml

+2
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,7 @@ jobs:
1111
steps:
1212
- uses: actions/checkout@v4
1313
- uses: actions/setup-python@v5
14+
with:
15+
python-version: '3.12'
1416
- run: python -m pip install --upgrade pip && pip install nox
1517
- run: nox -s check-changelog

.github/workflows/ci.yml

+22-2
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@ jobs:
2222
steps:
2323
- uses: actions/checkout@v4
2424
- uses: actions/setup-python@v5
25+
with:
26+
python-version: '3.12'
2527
- run: python -m pip install --upgrade pip && pip install nox
2628
- uses: dtolnay/rust-toolchain@stable
2729
with:
@@ -38,6 +40,8 @@ jobs:
3840
steps:
3941
- uses: actions/checkout@v4
4042
- uses: actions/setup-python@v5
43+
with:
44+
python-version: '3.12'
4145
- name: resolve MSRV
4246
id: resolve-msrv
4347
run:
@@ -50,6 +54,8 @@ jobs:
5054
steps:
5155
- uses: actions/checkout@v4
5256
- uses: actions/setup-python@v5
57+
with:
58+
python-version: '3.12'
5359
- uses: obi1kenobi/cargo-semver-checks-action@v2
5460

5561
check-msrv:
@@ -60,11 +66,10 @@ jobs:
6066
- uses: dtolnay/rust-toolchain@master
6167
with:
6268
toolchain: ${{ needs.resolve.outputs.MSRV }}
63-
targets: x86_64-unknown-linux-gnu
6469
components: rust-src
6570
- uses: actions/setup-python@v5
6671
with:
67-
architecture: "x64"
72+
python-version: '3.12'
6873
- uses: Swatinem/rust-cache@v2
6974
with:
7075
save-if: ${{ github.event_name != 'merge_group' }}
@@ -143,6 +148,7 @@ jobs:
143148
components: clippy,rust-src
144149
- uses: actions/setup-python@v5
145150
with:
151+
python-version: '3.12'
146152
architecture: ${{ matrix.platform.python-architecture }}
147153
- uses: Swatinem/rust-cache@v2
148154
with:
@@ -324,6 +330,10 @@ jobs:
324330
steps:
325331
- uses: actions/checkout@v4
326332
- uses: actions/setup-python@v5
333+
with:
334+
# FIXME valgrind detects an issue with Python 3.12.5, needs investigation
335+
# whether it's a PyO3 issue or upstream CPython.
336+
python-version: '3.12.4'
327337
- uses: Swatinem/rust-cache@v2
328338
with:
329339
save-if: ${{ github.event_name != 'merge_group' }}
@@ -343,6 +353,8 @@ jobs:
343353
steps:
344354
- uses: actions/checkout@v4
345355
- uses: actions/setup-python@v5
356+
with:
357+
python-version: '3.12'
346358
- uses: Swatinem/rust-cache@v2
347359
with:
348360
save-if: ${{ github.event_name != 'merge_group' }}
@@ -363,6 +375,8 @@ jobs:
363375
steps:
364376
- uses: actions/checkout@v4
365377
- uses: actions/setup-python@v5
378+
with:
379+
python-version: '3.12'
366380
- uses: Swatinem/rust-cache@v2
367381
with:
368382
save-if: ${{ github.event_name != 'merge_group' }}
@@ -387,6 +401,8 @@ jobs:
387401
if: steps.should-skip.outputs.skip != 'true'
388402
- uses: actions/setup-python@v5
389403
if: steps.should-skip.outputs.skip != 'true'
404+
with:
405+
python-version: '3.12'
390406
- uses: Swatinem/rust-cache@v2
391407
if: steps.should-skip.outputs.skip != 'true'
392408
with:
@@ -517,6 +533,8 @@ jobs:
517533
steps:
518534
- uses: actions/checkout@v4
519535
- uses: actions/setup-python@v5
536+
with:
537+
python-version: '3.12'
520538
- uses: Swatinem/rust-cache@v2
521539
with:
522540
save-if: ${{ github.event_name != 'merge_group' }}
@@ -584,6 +602,8 @@ jobs:
584602
steps:
585603
- uses: actions/checkout@v4
586604
- uses: actions/setup-python@v5
605+
with:
606+
python-version: '3.12'
587607
- uses: Swatinem/rust-cache@v2
588608
with:
589609
workspaces:

.github/workflows/gh-pages.yml

+2
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@ jobs:
2323
steps:
2424
- uses: actions/checkout@v4
2525
- uses: actions/setup-python@v5
26+
with:
27+
python-version: '3.12'
2628
- uses: dtolnay/rust-toolchain@nightly
2729

2830
- name: Setup mdBook

.python-version

-1
This file was deleted.

0 commit comments

Comments
 (0)