Skip to content

Commit 695de37

Browse files
authored
CI: use actions/setup-python (#1061)
Also run tools-test.yml if modified
1 parent a206a41 commit 695de37

File tree

6 files changed

+43
-1
lines changed

6 files changed

+43
-1
lines changed

.github/workflows/assemble-distro.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,11 @@ jobs:
4747
restore-keys: |
4848
archives-
4949
50+
- name: "Set up Python"
51+
uses: actions/setup-python@v5
52+
with:
53+
python-version: "3.11"
54+
5055
- name: "Install package distribution tools"
5156
run: python -m pip install -r tools/requirements.txt
5257

.github/workflows/pull-request.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,11 @@ jobs:
3737
with:
3838
fetch-depth: 0
3939

40+
- name: "Set up Python"
41+
uses: actions/setup-python@v5
42+
with:
43+
python-version: "3.11"
44+
4045
- name: "Install package distribution tools"
4146
run: python -m pip install -r tools/requirements.txt
4247

.github/workflows/scan-for-updates.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,11 @@ jobs:
6060
GAP_PKGS_TO_CLONE: 'crypting json'
6161
GAP_PKGS_TO_BUILD: 'crypting json'
6262

63+
- name: "Set up Python"
64+
uses: actions/setup-python@v5
65+
with:
66+
python-version: "3.11"
67+
6368
- name: "Install prerequisites for package distribution tools"
6469
run: python -m pip install -r tools/requirements.txt
6570

.github/workflows/test-all.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,11 @@ jobs:
8686
restore-keys: |
8787
archives-
8888
89+
- name: "Set up Python"
90+
uses: actions/setup-python@v5
91+
with:
92+
python-version: "3.11"
93+
8994
- name: "Install package distribution tools"
9095
run: python -m pip install -r tools/requirements.txt
9196

@@ -249,6 +254,11 @@ jobs:
249254
steps:
250255
- uses: actions/checkout@v4
251256

257+
- name: "Set up Python"
258+
uses: actions/setup-python@v5
259+
with:
260+
python-version: "3.11"
261+
252262
- name: "Install package distribution tools"
253263
run: python -m pip install -r tools/requirements.txt
254264

@@ -351,6 +361,11 @@ jobs:
351361
steps:
352362
- uses: actions/checkout@v4
353363

364+
- name: "Set up Python"
365+
uses: actions/setup-python@v5
366+
with:
367+
python-version: "3.11"
368+
354369
- name: "Install package distribution tools"
355370
run: python -m pip install -r tools/requirements.txt
356371

.github/workflows/tools-tests.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,19 +9,26 @@ on:
99
push:
1010
paths:
1111
- 'tools/*'
12+
- '.github/workflows/tools-test.yml' # modified workflow may affect tools
1213
branches:
1314
- main
1415
pull_request:
1516
paths:
1617
- 'tools/*'
18+
- '.github/workflows/tools-test.yml' # modified workflow may affect tools
1719

1820
jobs:
19-
py39:
21+
py311:
2022
name: "Run tests"
2123
runs-on: ubuntu-20.04
2224
steps:
2325
- uses: actions/checkout@v4
2426

27+
- name: "Set up Python"
28+
uses: actions/setup-python@v5
29+
with:
30+
python-version: "3.11"
31+
2532
- name: Install dependencies
2633
run: |
2734
python -m pip install -r tools/requirements.txt

.github/workflows/update-latest-report.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,11 @@ jobs:
3030
name: "Upload report"
3131
runs-on: ubuntu-20.04
3232
steps:
33+
- name: "Set up Python"
34+
uses: actions/setup-python@v5
35+
with:
36+
python-version: "3.11"
37+
3338
- uses: actions/checkout@v4
3439

3540
- name: "Install package distribution tools"

0 commit comments

Comments
 (0)