Skip to content

Commit a79ca11

Browse files
authored
[github-actions] use setup-python action (openthread#10797)
1 parent 8cb529b commit a79ca11

File tree

7 files changed

+89
-13
lines changed

7 files changed

+89
-13
lines changed

.github/workflows/build.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,10 @@ jobs:
5656
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
5757
with:
5858
submodules: true
59+
- uses: actions/setup-python@f677139bbe7f9c59b41e40162b753c062f5d49a3 # v5.2.0
60+
with:
61+
python-version: '3.12'
62+
cache: pip
5963
- name: Bootstrap
6064
run: |
6165
sudo rm /etc/apt/sources.list.d/* && sudo apt-get update
@@ -92,6 +96,10 @@ jobs:
9296
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
9397
with:
9498
submodules: true
99+
- uses: actions/setup-python@f677139bbe7f9c59b41e40162b753c062f5d49a3 # v5.2.0
100+
with:
101+
python-version: '3.12'
102+
cache: pip
95103
- name: Bootstrap
96104
run: |
97105
python -m pip install --upgrade pip

.github/workflows/otci.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,10 +62,14 @@ jobs:
6262
egress-policy: audit # TODO: change to 'egress-policy: block' after couple of runs
6363

6464
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
65+
- uses: actions/setup-python@f677139bbe7f9c59b41e40162b753c062f5d49a3 # v5.2.0
66+
with:
67+
python-version: '3.12'
68+
cache: pip
6569
- name: Bootstrap
6670
run: |
6771
sudo rm /etc/apt/sources.list.d/* && sudo apt-get update
68-
sudo apt-get --no-install-recommends install -y ninja-build python3-setuptools python3-wheel
72+
sudo apt-get --no-install-recommends install -y ninja-build
6973
python3 -m pip install -r tests/scripts/thread-cert/requirements.txt
7074
python3 -m pip install pytype adb-shell
7175
- name: Style check

.github/workflows/posix.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,10 +145,14 @@ jobs:
145145
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
146146
with:
147147
submodules: true
148+
- uses: actions/setup-python@f677139bbe7f9c59b41e40162b753c062f5d49a3 # v5.2.0
149+
with:
150+
python-version: '3.12'
151+
cache: pip
148152
- name: Bootstrap
149153
run: |
150154
sudo rm /etc/apt/sources.list.d/* && sudo apt-get update
151-
sudo apt-get --no-install-recommends install -y lcov ninja-build python3-setuptools python3-wheel
155+
sudo apt-get --no-install-recommends install -y lcov ninja-build
152156
python3 -m pip install -r tests/scripts/thread-cert/requirements.txt
153157
- name: Build
154158
run: |

.github/workflows/simulation-1.1.yml

Lines changed: 29 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -62,10 +62,14 @@ jobs:
6262
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
6363
with:
6464
submodules: true
65+
- uses: actions/setup-python@f677139bbe7f9c59b41e40162b753c062f5d49a3 # v5.2.0
66+
with:
67+
python-version: '3.12'
68+
cache: pip
6569
- name: Bootstrap
6670
run: |
6771
sudo rm /etc/apt/sources.list.d/* && sudo apt-get update
68-
sudo apt-get --no-install-recommends install -y python3-setuptools python3-wheel ninja-build lcov
72+
sudo apt-get --no-install-recommends install -y ninja-build lcov
6973
python3 -m pip install -r tests/scripts/thread-cert/requirements.txt
7074
- name: Build
7175
run: |
@@ -111,10 +115,14 @@ jobs:
111115
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
112116
with:
113117
submodules: true
118+
- uses: actions/setup-python@f677139bbe7f9c59b41e40162b753c062f5d49a3 # v5.2.0
119+
with:
120+
python-version: '3.12'
121+
cache: pip
114122
- name: Bootstrap
115123
run: |
116124
sudo rm /etc/apt/sources.list.d/* && sudo apt-get update
117-
sudo apt-get --no-install-recommends install -y lcov ninja-build g++-multilib python3-setuptools python3-wheel
125+
sudo apt-get --no-install-recommends install -y lcov ninja-build g++-multilib
118126
python3 -m pip install -r tests/scripts/thread-cert/requirements.txt
119127
- name: Build
120128
run: |
@@ -162,10 +170,14 @@ jobs:
162170
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
163171
with:
164172
submodules: true
173+
- uses: actions/setup-python@f677139bbe7f9c59b41e40162b753c062f5d49a3 # v5.2.0
174+
with:
175+
python-version: '3.12'
176+
cache: pip
165177
- name: Bootstrap
166178
run: |
167179
sudo rm /etc/apt/sources.list.d/* && sudo apt-get update
168-
sudo apt-get --no-install-recommends install -y lcov ninja-build g++-multilib python3-setuptools python3-wheel
180+
sudo apt-get --no-install-recommends install -y lcov ninja-build g++-multilib
169181
python3 -m pip install -r tests/scripts/thread-cert/requirements.txt
170182
- name: Build
171183
run: |
@@ -206,10 +218,14 @@ jobs:
206218
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
207219
with:
208220
submodules: true
221+
- uses: actions/setup-python@f677139bbe7f9c59b41e40162b753c062f5d49a3 # v5.2.0
222+
with:
223+
python-version: '3.12'
224+
cache: pip
209225
- name: Bootstrap
210226
run: |
211227
sudo rm /etc/apt/sources.list.d/* && sudo apt-get update
212-
sudo apt-get --no-install-recommends install -y g++-multilib lcov ninja-build python3-setuptools python3-wheel
228+
sudo apt-get --no-install-recommends install -y g++-multilib lcov ninja-build
213229
python3 -m pip install -r tests/scripts/thread-cert/requirements.txt
214230
- name: Build
215231
run: |
@@ -244,6 +260,10 @@ jobs:
244260
egress-policy: audit # TODO: change to 'egress-policy: block' after couple of runs
245261

246262
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
263+
- uses: actions/setup-python@f677139bbe7f9c59b41e40162b753c062f5d49a3 # v5.2.0
264+
with:
265+
python-version: '3.12'
266+
cache: pip
247267
- name: Bootstrap
248268
run: |
249269
sudo apt-get --no-install-recommends install -y expect ninja-build lcov socat
@@ -340,9 +360,13 @@ jobs:
340360
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
341361
with:
342362
submodules: true
363+
- uses: actions/setup-python@f677139bbe7f9c59b41e40162b753c062f5d49a3 # v5.2.0
364+
with:
365+
python-version: '3.12'
366+
cache: pip
343367
- name: Bootstrap
344368
run: |
345-
sudo apt-get --no-install-recommends install -y lcov ninja-build python3-setuptools python3-wheel
369+
sudo apt-get --no-install-recommends install -y lcov ninja-build
346370
python3 -m pip install -r tests/scripts/thread-cert/requirements.txt
347371
- name: Build
348372
run: |

.github/workflows/simulation-1.4.yml

Lines changed: 29 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -73,11 +73,15 @@ jobs:
7373
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
7474
with:
7575
submodules: true
76+
- uses: actions/setup-python@f677139bbe7f9c59b41e40162b753c062f5d49a3 # v5.2.0
77+
with:
78+
python-version: '3.12'
79+
cache: pip
7680
- name: Bootstrap
7781
run: |
7882
sudo dpkg --add-architecture i386
7983
sudo apt-get update
80-
sudo apt-get --no-install-recommends install -y clang-10 clang++-10 ninja-build python3-setuptools python3-wheel llvm lcov
84+
sudo apt-get --no-install-recommends install -y clang-10 clang++-10 ninja-build llvm lcov
8185
sudo apt-get --no-install-recommends install -y g++-multilib libreadline-dev:i386 libncurses-dev:i386
8286
python3 -m pip install -r tests/scripts/thread-cert/requirements.txt
8387
- name: Build
@@ -135,10 +139,14 @@ jobs:
135139
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
136140
with:
137141
submodules: true
142+
- uses: actions/setup-python@f677139bbe7f9c59b41e40162b753c062f5d49a3 # v5.2.0
143+
with:
144+
python-version: '3.12'
145+
cache: pip
138146
- name: Bootstrap
139147
run: |
140148
sudo rm /etc/apt/sources.list.d/* && sudo apt-get update
141-
sudo apt-get --no-install-recommends install -y python3-setuptools python3-wheel ninja-build lcov
149+
sudo apt-get --no-install-recommends install -y ninja-build lcov
142150
python3 -m pip install -r tests/scripts/thread-cert/requirements.txt
143151
- name: Build
144152
run: |
@@ -206,10 +214,14 @@ jobs:
206214
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
207215
with:
208216
submodules: true
217+
- uses: actions/setup-python@f677139bbe7f9c59b41e40162b753c062f5d49a3 # v5.2.0
218+
with:
219+
python-version: '3.12'
220+
cache: pip
209221
- name: Bootstrap
210222
run: |
211223
sudo rm /etc/apt/sources.list.d/* && sudo apt-get update
212-
sudo apt-get --no-install-recommends install -y python3-setuptools python3-wheel ninja-build lcov
224+
sudo apt-get --no-install-recommends install -y ninja-build lcov
213225
python3 -m pip install -r tests/scripts/thread-cert/requirements.txt
214226
- name: Build
215227
run: |
@@ -254,10 +266,14 @@ jobs:
254266
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
255267
with:
256268
submodules: true
269+
- uses: actions/setup-python@f677139bbe7f9c59b41e40162b753c062f5d49a3 # v5.2.0
270+
with:
271+
python-version: '3.12'
272+
cache: pip
257273
- name: Bootstrap
258274
run: |
259275
sudo rm /etc/apt/sources.list.d/* && sudo apt-get update
260-
sudo apt-get --no-install-recommends install -y g++-multilib lcov ninja-build python3-setuptools python3-wheel
276+
sudo apt-get --no-install-recommends install -y g++-multilib lcov ninja-build
261277
python3 -m pip install -r tests/scripts/thread-cert/requirements.txt
262278
- name: Build
263279
run: |
@@ -295,6 +311,10 @@ jobs:
295311
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
296312
with:
297313
submodules: true
314+
- uses: actions/setup-python@f677139bbe7f9c59b41e40162b753c062f5d49a3 # v5.2.0
315+
with:
316+
python-version: '3.12'
317+
cache: pip
298318
- name: Bootstrap
299319
run: |
300320
sudo apt-get --no-install-recommends install -y expect ninja-build lcov socat
@@ -345,10 +365,14 @@ jobs:
345365
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
346366
with:
347367
submodules: true
368+
- uses: actions/setup-python@f677139bbe7f9c59b41e40162b753c062f5d49a3 # v5.2.0
369+
with:
370+
python-version: '3.12'
371+
cache: pip
348372
- name: Bootstrap
349373
run: |
350374
sudo rm /etc/apt/sources.list.d/* && sudo apt-get update
351-
sudo apt-get --no-install-recommends install -y libreadline6-dev ninja-build python3-setuptools python3-wheel llvm lcov
375+
sudo apt-get --no-install-recommends install -y libreadline6-dev ninja-build llvm lcov
352376
python3 -m pip install -r tests/scripts/thread-cert/requirements.txt
353377
- name: Build
354378
run: |

.github/workflows/toranj.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,10 @@ jobs:
6666
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
6767
with:
6868
submodules: true
69+
- uses: actions/setup-python@f677139bbe7f9c59b41e40162b753c062f5d49a3 # v5.2.0
70+
with:
71+
python-version: '3.12'
72+
cache: pip
6973
- name: Bootstrap
7074
env:
7175
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
@@ -97,6 +101,10 @@ jobs:
97101
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
98102
with:
99103
submodules: true
104+
- uses: actions/setup-python@f677139bbe7f9c59b41e40162b753c062f5d49a3 # v5.2.0
105+
with:
106+
python-version: '3.12'
107+
cache: pip
100108
- name: Bootstrap
101109
env:
102110
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
@@ -130,6 +138,10 @@ jobs:
130138
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
131139
with:
132140
submodules: true
141+
- uses: actions/setup-python@f677139bbe7f9c59b41e40162b753c062f5d49a3 # v5.2.0
142+
with:
143+
python-version: '3.12'
144+
cache: pip
133145
- name: Bootstrap
134146
env:
135147
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"

tests/scripts/thread-cert/requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
#
77
ipaddress==1.0.23
88
# via -r requirements.in
9-
lxml==4.9.2
9+
lxml==5.3.0
1010
# via pyshark
1111
packaging==23.0
1212
# via pyshark

0 commit comments

Comments
 (0)