Skip to content

Commit 9b3341e

Browse files
committed
CI: Update Python linting workflow.
1 parent eee6ee6 commit 9b3341e

File tree

1 file changed

+10
-5
lines changed

1 file changed

+10
-5
lines changed

.github/workflows/python.yml

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,24 +7,29 @@ on:
77
jobs:
88
build:
99
name: Python Linting
10-
runs-on: ubuntu-20.04
10+
runs-on: ubuntu-24.04
1111
steps:
1212
- uses: actions/checkout@v4
1313

14+
- name: Install Python
15+
uses: actions/setup-python@8d9ed9ac5c53483de85588cdf95a591a75ab9f55
16+
with:
17+
python-version: '3.13'
18+
1419
- name: Install Python Deps
15-
run: python3 -m pip install flake8
20+
run: pip install flake8
1621

1722
- name: Lint micropython/modules_py
1823
shell: bash
1924
run: |
20-
python3 -m flake8 --show-source --ignore E501 micropython/modules_py
25+
flake8 --show-source --ignore E501 micropython/modules_py
2126
2227
- name: Lint micropython/examples
2328
shell: bash
2429
run: |
25-
python3 -m flake8 --show-source --ignore E501 micropython/examples
30+
flake8 --show-source --ignore E501 micropython/examples
2631
2732
- name: Lint .py tools in C++ examples
2833
shell: bash
2934
run: |
30-
python3 -m flake8 --show-source --ignore E501 examples
35+
flake8 --show-source --ignore E501 examples

0 commit comments

Comments
 (0)