Skip to content

Commit 4bec66e

Browse files
Pin Python version to 3.11.4 in CI runs. (RustPython#5015)
* Pin Python version to 3.11.4 in CI runs. * Use quotation marks around version, yaml parsing issues. Co-authored-by: fanninpm <fanninpm@miamioh.edu> --------- Co-authored-by: fanninpm <fanninpm@miamioh.edu>
1 parent 1cdc5d3 commit 4bec66e

File tree

2 files changed

+9
-6
lines changed

2 files changed

+9
-6
lines changed

.github/workflows/ci.yaml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,8 @@ env:
104104
test_unpack
105105
test_weakref
106106
test_yield_from
107+
# Python version targeted by the CI.
108+
PYTHON_VERSION: "3.11.4"
107109

108110
jobs:
109111
rust_tests:
@@ -245,7 +247,7 @@ jobs:
245247
- uses: dtolnay/rust-toolchain@stable
246248
- uses: actions/setup-python@v4
247249
with:
248-
python-version: "3.11.4"
250+
python-version: ${{ env.PYTHON_VERSION }}
249251
- name: Set up the Windows environment
250252
shell: bash
251253
run: |
@@ -261,7 +263,7 @@ jobs:
261263
run: cargo build --release --verbose --features=threading ${{ env.CARGO_ARGS }}
262264
- uses: actions/setup-python@v4
263265
with:
264-
python-version: "3.11"
266+
python-version: ${{ env.PYTHON_VERSION }}
265267
- name: run snippets
266268
run: python -m pip install -r requirements.txt && pytest -v
267269
working-directory: ./extra_tests
@@ -311,7 +313,7 @@ jobs:
311313
run: cargo clippy --manifest-path=wasm/lib/Cargo.toml -- -Dwarnings
312314
- uses: actions/setup-python@v4
313315
with:
314-
python-version: "3.11"
316+
python-version: ${{ env.PYTHON_VERSION }}
315317
- name: install ruff
316318
run: python -m pip install ruff
317319
- name: run python lint
@@ -359,7 +361,7 @@ jobs:
359361
tar -xzf geckodriver-v0.30.0-linux64.tar.gz -C geckodriver
360362
- uses: actions/setup-python@v4
361363
with:
362-
python-version: "3.11"
364+
python-version: ${{ env.PYTHON_VERSION }}
363365
- run: python -m pip install -r requirements.txt
364366
working-directory: ./wasm/tests
365367
- uses: actions/setup-node@v3

.github/workflows/cron-ci.yaml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ name: Periodic checks/tasks
77

88
env:
99
CARGO_ARGS: --no-default-features --features stdlib,zlib,importlib,encodings,ssl,jit
10+
PYTHON_VERSION: "3.11.4"
1011

1112
jobs:
1213
# codecov collects code coverage data from the rust tests, python snippets and python test suite.
@@ -20,7 +21,7 @@ jobs:
2021
- uses: taiki-e/install-action@cargo-llvm-cov
2122
- uses: actions/setup-python@v4
2223
with:
23-
python-version: "3.11"
24+
python-version: ${{ env.PYTHON_VERSION }}
2425
- run: sudo apt-get update && sudo apt-get -y install lcov
2526
- name: Run cargo-llvm-cov with Rust tests.
2627
run: cargo llvm-cov --no-report --workspace --exclude rustpython_wasm --verbose --no-default-features --features stdlib,zlib,importlib,encodings,ssl,jit
@@ -74,7 +75,7 @@ jobs:
7475
- uses: dtolnay/rust-toolchain@stable
7576
- uses: actions/setup-python@v4
7677
with:
77-
python-version: "3.11"
78+
python-version: ${{ env.PYTHON_VERSION }}
7879
- name: build rustpython
7980
run: cargo build --release --verbose
8081
- name: Collect what is left data

0 commit comments

Comments
 (0)