Skip to content

Commit 888ec2b

Browse files
committed
Specify Python version using .tool-versions
This file is a fairly standard approach to managing different versions of Python and it ensures that our CI environment stays in sync with the local version of Python.
1 parent f1b467a commit 888ec2b

File tree

3 files changed

+13
-8
lines changed

3 files changed

+13
-8
lines changed

.github/workflows/MAVIS_TEST.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,9 @@ jobs:
2121

2222
steps:
2323
- uses: actions/checkout@v4
24-
- name: Set up Python 3.13
25-
uses: actions/setup-python@v3
24+
- uses: actions/setup-python@v5
2625
with:
27-
python-version: "3.13"
26+
python-version-file: .tool-versions
2827
- name: Install dependencies
2928
run: |
3029
python -m pip install --upgrade pip

.tool-versions

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
1-
# This file is for you! Please, updated to the versions agreed by your team.
2-
31
editorconfig-checker 3.2.1
2+
python 3.13.3
43

54
# ==============================================================================
65
# The section below is reserved for Docker image versions.

README.md

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,16 +10,23 @@ It is currently configured to run on the QA environment. The project utilizes t
1010

1111
## Installation
1212

13-
This test pack requires Python 3.10 installed on the system or greater to run.
14-
15-
To execute the tests from your system, please follow the 4 easy steps below:
13+
To execute the tests from your system, please follow the steps below:
1614

1715
1. Clone the repository to any local folder
1816

1917
```console
2018
git clone https://github.com/NHSDigital/manage-vaccinations-in-schools-testing.git
2119
```
2220

21+
1. Install Python
22+
23+
The version of Python is specified in the `.tool-versions` file meaning it can be managed automatically using tools
24+
such as [Mise](https://mise.jdx.dev) or [Asdf](https://asdf-vm.com).
25+
26+
```console
27+
mise install
28+
```
29+
2330
1. Create a virtual environment
2431

2532
```console

0 commit comments

Comments
 (0)