Skip to content

Commit 333a91b

Browse files
authored
Merge branch 'micropython:master' into samd_i2c
2 parents d5f0f18 + 8ce7a58 commit 333a91b

File tree

370 files changed

+4926
-2052
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

370 files changed

+4926
-2052
lines changed

.github/workflows/codespell.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,6 @@ jobs:
88
steps:
99
- uses: actions/checkout@v4
1010
# codespell version should be kept in sync with .pre-commit-config.yml
11-
- run: pip install --user codespell==2.2.6 tomli
11+
- run: pip install --user codespell==2.4.1 tomli
1212
- run: codespell
1313

.github/workflows/mpy_format.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ concurrency:
1515

1616
jobs:
1717
test:
18-
runs-on: ubuntu-20.04 # use 20.04 to get python2
18+
runs-on: ubuntu-22.04 # use 22.04 to get python2
1919
steps:
2020
- uses: actions/checkout@v4
2121
- name: Install packages

.github/workflows/ports_esp32.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,13 +25,13 @@ jobs:
2525
ci_func: # names are functions in ci.sh
2626
- esp32_build_cmod_spiram_s2
2727
- esp32_build_s3_c3
28-
runs-on: ubuntu-20.04
28+
runs-on: ubuntu-latest
2929
steps:
3030
- uses: actions/checkout@v4
3131

3232
- id: idf_ver
33-
name: Read the ESP-IDF version
34-
run: source tools/ci.sh && echo "IDF_VER=$IDF_VER" | tee "$GITHUB_OUTPUT"
33+
name: Read the ESP-IDF version (including Python version)
34+
run: source tools/ci.sh && echo "IDF_VER=${IDF_VER}-py${PYTHON_VER}" | tee "$GITHUB_OUTPUT"
3535

3636
- name: Cached ESP-IDF install
3737
id: cache_esp_idf

.github/workflows/ports_mimxrt.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ concurrency:
1919

2020
jobs:
2121
build:
22-
runs-on: ubuntu-20.04
22+
runs-on: ubuntu-latest
2323
defaults:
2424
run:
2525
working-directory: 'micropython repo' # test build with space in path

.github/workflows/ports_nrf.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ concurrency:
1919

2020
jobs:
2121
build:
22-
runs-on: ubuntu-20.04
22+
runs-on: ubuntu-latest
2323
steps:
2424
- uses: actions/checkout@v4
2525
- name: Install packages

.github/workflows/ports_renesas-ra.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ concurrency:
1919

2020
jobs:
2121
build_renesas_ra_board:
22-
runs-on: ubuntu-20.04
22+
runs-on: ubuntu-latest
2323
steps:
2424
- uses: actions/checkout@v4
2525
- name: Install packages

.github/workflows/ports_stm32.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626
- stm32_pyb_build
2727
- stm32_nucleo_build
2828
- stm32_misc_build
29-
runs-on: ubuntu-20.04
29+
runs-on: ubuntu-22.04
3030
steps:
3131
- uses: actions/checkout@v4
3232
- name: Install packages

.github/workflows/ports_unix.yml

Lines changed: 20 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ jobs:
9898
run: tests/run-tests.py --print-failures
9999

100100
coverage_32bit:
101-
runs-on: ubuntu-20.04 # use 20.04 to get libffi-dev:i386
101+
runs-on: ubuntu-22.04 # use 22.04 to get libffi-dev:i386
102102
steps:
103103
- uses: actions/checkout@v4
104104
- name: Install packages
@@ -116,7 +116,7 @@ jobs:
116116
run: tests/run-tests.py --print-failures
117117

118118
nanbox:
119-
runs-on: ubuntu-20.04 # use 20.04 to get python2, and libffi-dev:i386
119+
runs-on: ubuntu-22.04 # use 22.04 to get python2, and libffi-dev:i386
120120
steps:
121121
- uses: actions/checkout@v4
122122
- name: Install packages
@@ -142,7 +142,7 @@ jobs:
142142
run: tests/run-tests.py --print-failures
143143

144144
stackless_clang:
145-
runs-on: ubuntu-20.04
145+
runs-on: ubuntu-latest
146146
steps:
147147
- uses: actions/checkout@v4
148148
- name: Install packages
@@ -156,7 +156,7 @@ jobs:
156156
run: tests/run-tests.py --print-failures
157157

158158
float_clang:
159-
runs-on: ubuntu-20.04
159+
runs-on: ubuntu-latest
160160
steps:
161161
- uses: actions/checkout@v4
162162
- name: Install packages
@@ -173,6 +173,11 @@ jobs:
173173
runs-on: ubuntu-latest
174174
steps:
175175
- uses: actions/checkout@v4
176+
- uses: actions/setup-python@v5
177+
# Python 3.12 is the default for ubuntu-24.04, but that has compatibility issues with settrace tests.
178+
# Can remove this step when ubuntu-latest uses a more recent Python 3.x as the default.
179+
with:
180+
python-version: '3.11'
176181
- name: Build
177182
run: source tools/ci.sh && ci_unix_settrace_build
178183
- name: Run main test suite
@@ -185,6 +190,11 @@ jobs:
185190
runs-on: ubuntu-latest
186191
steps:
187192
- uses: actions/checkout@v4
193+
- uses: actions/setup-python@v5
194+
# Python 3.12 is the default for ubuntu-24.04, but that has compatibility issues with settrace tests.
195+
# Can remove this step when ubuntu-latest uses a more recent Python 3.x as the default.
196+
with:
197+
python-version: '3.11'
188198
- name: Build
189199
run: source tools/ci.sh && ci_unix_settrace_stackless_build
190200
- name: Run main test suite
@@ -209,7 +219,8 @@ jobs:
209219
run: tests/run-tests.py --print-failures
210220

211221
qemu_mips:
212-
runs-on: ubuntu-latest
222+
# ubuntu-22.04 is needed for older libffi.
223+
runs-on: ubuntu-22.04
213224
steps:
214225
- uses: actions/checkout@v4
215226
- name: Install packages
@@ -223,7 +234,8 @@ jobs:
223234
run: tests/run-tests.py --print-failures
224235

225236
qemu_arm:
226-
runs-on: ubuntu-latest
237+
# ubuntu-22.04 is needed for older libffi.
238+
runs-on: ubuntu-22.04
227239
steps:
228240
- uses: actions/checkout@v4
229241
- name: Install packages
@@ -237,7 +249,8 @@ jobs:
237249
run: tests/run-tests.py --print-failures
238250

239251
qemu_riscv64:
240-
runs-on: ubuntu-latest
252+
# ubuntu-22.04 is needed for older libffi.
253+
runs-on: ubuntu-22.04
241254
steps:
242255
- uses: actions/checkout@v4
243256
- name: Install packages

.github/workflows/ruff.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,6 @@ jobs:
88
steps:
99
- uses: actions/checkout@v4
1010
# ruff version should be kept in sync with .pre-commit-config.yaml
11-
- run: pip install --user ruff==0.1.3
11+
- run: pipx install ruff==0.9.6
1212
- run: ruff check --output-format=github .
1313
- run: ruff format --diff .

.pre-commit-config.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,13 @@ repos:
1313
stages: [commit-msg]
1414
- repo: https://github.com/charliermarsh/ruff-pre-commit
1515
# Version should be kept in sync with .github/workflows/ruff.yml
16-
rev: v0.1.3
16+
rev: v0.9.6
1717
hooks:
1818
- id: ruff
1919
- id: ruff-format
2020
- repo: https://github.com/codespell-project/codespell
2121
# Version should be kept in sync with .github/workflows/codespell.yml
22-
rev: v2.2.6
22+
rev: v2.4.1
2323
hooks:
2424
- id: codespell
2525
name: Spellcheck for changed files (codespell)

0 commit comments

Comments
 (0)