@@ -86,26 +86,20 @@ jobs:
8686
8787 style-check :
8888 runs-on : ubuntu-latest
89- container :
90- image : ghcr.io/armmbed/mbed-os-env:master-latest
91-
9289 steps :
9390
9491 - name : Checkout repo
95- uses : actions/checkout@v4
92+ uses : actions/checkout@v5
9693 with :
9794 fetch-depth : 0
9895
99- -
100- name : UTF-8 Check
96+ - name : UTF-8 Check
10197 run : |
10298 git config --global --add safe.directory "$GITHUB_WORKSPACE"
10399 # Make sure we're not introducing any text which is not UTF-8 encoded
104100 git diff origin/${GITHUB_BASE_REF} -U0 | ( grep -a '^+' || true ) | ( ! grep -axv '.*' )
105-
106101
107- -
108- name : astyle checks
102+ - name : astyle checks
109103 run : |
110104 set -x
111105 git config --global --add safe.directory "$GITHUB_WORKSPACE"
@@ -134,11 +128,28 @@ jobs:
134128 tee BUILD/badlibs |
135129 sed -e "s/^/Bad library name found: /" && [ ! -s BUILD/badlibs ]
136130 # Assert that all assembler files are named correctly
137- # The strange command below asserts that there are exactly 0 libraries
131+ # The strange command below asserts that there are exactly 0 files
138132 # that do end with .s
139133 find -name "*.s" | tee BUILD/badasm |
140134 sed -e "s/^/Bad Assembler file name found: /" && [ ! -s BUILD/badasm ]
141135
136+ # Set up the oldest python version that's currently still supported by Python (as of Fall 2025)
137+ - uses : actions/setup-python@v6
138+ with :
139+ python-version : ' 3.9'
140+
141+ - name : Install Python packages
142+ run : |
143+ python3 -m venv venv
144+ source venv/bin/activate
145+ pip install -e ./tools[linters]
146+
147+ - name : Check Python Formatting
148+ run : |
149+ cd tools
150+ ruff format --diff
151+
152+
142153 docs-check :
143154 runs-on : ubuntu-latest
144155
@@ -162,14 +173,13 @@ jobs:
162173 python-tests :
163174 runs-on : ubuntu-latest
164175 steps :
165- -
166- name : Checkout repo
167- uses : actions/checkout@v4
168-
169- - name : Install python3-venv
170- run : |
171- sudo apt-get update
172- sudo apt-get install -y python3-venv
176+ - name : Checkout repo
177+ uses : actions/checkout@v5
178+
179+ # Set up the oldest python version that's currently still supported by Python (as of Fall 2025)
180+ - uses : actions/setup-python@v6
181+ with :
182+ python-version : ' 3.9'
173183
174184 - name : Install Python packages
175185 run : |
0 commit comments