Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 5488839

Browse files
committedApr 2, 2025·
ci: bump ubuntu version
Bump actions to use ubuntu-24.04 for fixing the following GitHub warning: The Ubuntu 20.04 Actions runner image will begin deprecation on 2025-02-01. Part of #TNTP-1918
1 parent b6422af commit 5488839

File tree

4 files changed

+82
-60
lines changed

4 files changed

+82
-60
lines changed
 

‎.github/workflows/packing.yml

Lines changed: 50 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -20,14 +20,14 @@ jobs:
2020
if: (github.event_name == 'push') ||
2121
(github.event_name == 'pull_request' &&
2222
github.event.pull_request.head.repo.full_name != github.repository)
23-
runs-on: ubuntu-20.04
23+
runs-on: ubuntu-24.04
2424

2525
strategy:
2626
fail-fast: false
2727

2828
steps:
2929
- name: Clone the connector repo
30-
uses: actions/checkout@v3
30+
uses: actions/checkout@v4
3131
# Checkout all tags for correct version computation.
3232
with:
3333
fetch-depth: 0
@@ -65,14 +65,14 @@ jobs:
6565
if: (github.event_name == 'push') ||
6666
(github.event_name == 'pull_request' &&
6767
github.event.pull_request.head.repo.full_name != github.repository)
68-
runs-on: ubuntu-20.04
68+
runs-on: ubuntu-24.04
6969

7070
strategy:
7171
fail-fast: false
7272

7373
steps:
7474
- name: Clone the connector repo
75-
uses: actions/checkout@v3
75+
uses: actions/checkout@v4
7676

7777
- name: Setup Python
7878
uses: actions/setup-python@v4
@@ -83,7 +83,7 @@ jobs:
8383
run: python3 .github/scripts/remove_source_code.py
8484

8585
- name: Install tarantool
86-
uses: tarantool/setup-tarantool@v2
86+
uses: tarantool/setup-tarantool@v3
8787
with:
8888
tarantool-version: '2.11'
8989

@@ -103,7 +103,8 @@ jobs:
103103
run: |
104104
curl -L https://tarantool.io/release/2/installer.sh | bash
105105
sudo apt install -y tt
106-
tt rocks install crud
106+
pip3 install cmake==3.15.3
107+
tt rocks install crud 1.4.2
107108
108109
- name: Run tests
109110
run: make test-pure-install
@@ -127,7 +128,7 @@ jobs:
127128

128129
steps:
129130
- name: Clone the connector repo
130-
uses: actions/checkout@v3
131+
uses: actions/checkout@v4
131132

132133
- name: Setup Python
133134
uses: actions/setup-python@v4
@@ -188,14 +189,14 @@ jobs:
188189
- run_tests_pip_package_linux
189190
- run_tests_pip_package_windows
190191

191-
runs-on: ubuntu-20.04
192+
runs-on: ubuntu-24.04
192193

193194
strategy:
194195
fail-fast: false
195196

196197
steps:
197198
- name: Clone the connector repo
198-
uses: actions/checkout@v3
199+
uses: actions/checkout@v4
199200

200201
- name: Setup Python and basic packing tools
201202
uses: actions/setup-python@v4
@@ -226,7 +227,7 @@ jobs:
226227
if: (github.event_name == 'push') ||
227228
(github.event_name == 'pull_request' &&
228229
github.event.pull_request.head.repo.full_name != github.repository)
229-
runs-on: ubuntu-20.04
230+
runs-on: ubuntu-24.04
230231

231232
container:
232233
image: ${{ matrix.target.os }}:${{ matrix.target.dist }}
@@ -250,7 +251,7 @@ jobs:
250251
run: dnf install -y git
251252

252253
- name: Clone the connector repo
253-
uses: actions/checkout@v3
254+
uses: actions/checkout@v4
254255
# Checkout all tags for correct version computation.
255256
with:
256257
fetch-depth: 0
@@ -293,7 +294,7 @@ jobs:
293294
if: (github.event_name == 'push') ||
294295
(github.event_name == 'pull_request' &&
295296
github.event.pull_request.head.repo.full_name != github.repository)
296-
runs-on: ubuntu-20.04
297+
runs-on: ubuntu-24.04
297298

298299
container:
299300
image: ${{ matrix.target.os }}:${{ matrix.target.dist }}
@@ -312,7 +313,7 @@ jobs:
312313

313314
steps:
314315
- name: Clone the connector repo
315-
uses: actions/checkout@v3
316+
uses: actions/checkout@v4
316317

317318
- name: Setup Python and test running tools
318319
# cmake rocks fail to install as expected without findutils:
@@ -343,7 +344,8 @@ jobs:
343344
run: |
344345
curl -L https://tarantool.io/release/2/installer.sh | bash
345346
sudo dnf install -y tt
346-
tt rocks install crud
347+
pip3 install cmake==3.15.3
348+
tt rocks install crud 1.4.2
347349
348350
- name: Run tests
349351
run: make test-pure-install
@@ -354,7 +356,7 @@ jobs:
354356
needs:
355357
- run_tests_rpm
356358

357-
runs-on: ubuntu-20.04
359+
runs-on: ubuntu-24.04
358360

359361
strategy:
360362
fail-fast: false
@@ -370,7 +372,7 @@ jobs:
370372

371373
steps:
372374
- name: Clone the connector repo
373-
uses: actions/checkout@v3
375+
uses: actions/checkout@v4
374376

375377
- name: Install tools for package publishing
376378
run: sudo apt install -y curl make
@@ -404,14 +406,14 @@ jobs:
404406
if: (github.event_name == 'push') ||
405407
(github.event_name == 'pull_request' &&
406408
github.event.pull_request.head.repo.full_name != github.repository)
407-
runs-on: ubuntu-20.04
409+
runs-on: ubuntu-22.04
408410

409411
strategy:
410412
fail-fast: false
411413

412414
steps:
413415
- name: Clone the connector repo
414-
uses: actions/checkout@v3
416+
uses: actions/checkout@v4
415417
# Checkout all tags for correct version computation
416418
with:
417419
fetch-depth: 0
@@ -453,7 +455,7 @@ jobs:
453455
if: (github.event_name == 'push') ||
454456
(github.event_name == 'pull_request' &&
455457
github.event.pull_request.head.repo.full_name != github.repository)
456-
runs-on: ubuntu-20.04
458+
runs-on: ubuntu-24.04
457459

458460
container:
459461
image: ${{ matrix.target.os }}:${{ matrix.target.dist }}
@@ -463,18 +465,18 @@ jobs:
463465

464466
matrix:
465467
target:
468+
# - os: debian
469+
# dist: bookworm # 12
466470
- os: ubuntu
467471
dist: focal # 20.04
468472
- os: ubuntu
469473
dist: jammy # 22.04
470-
- os: debian
471-
dist: buster # 10
472-
- os: debian
473-
dist: bullseye # 11
474+
# - os: ubuntu
475+
# dist: noble # 24.04
474476

475477
steps:
476478
- name: Clone the connector repo
477-
uses: actions/checkout@v3
479+
uses: actions/checkout@v4
478480

479481
- name: Prepare apt
480482
run: apt update
@@ -500,29 +502,49 @@ jobs:
500502
path: deb_dist
501503

502504
- name: Install the package from deb artifacts
505+
# https://github.com/yktoo/indicator-sound-switcher/issues/113#issuecomment-1243975728
506+
# apt install zstd
503507
run: apt install -y `pwd`/deb_dist/python3-tarantool_*.deb
504508
env:
505509
DEBIAN_FRONTEND: noninteractive
506510

507511
- name: Install test requirements
508512
run: pip3 install -r requirements-test.txt
513+
if: matrix.target.os == 'ubuntu'
514+
515+
- name: Install test requirements
516+
run: |
517+
apt install -y python3.11-venv
518+
python3 -m venv .venv
519+
.venv/bin/activate
520+
pip3 install -r requirements-test.txt
521+
if: matrix.target.os == 'debian'
509522

510523
- name: Install the crud module for testing purposes
511524
run: |
512525
curl -L https://tarantool.io/release/2/installer.sh | bash
513526
apt install -y tt
514-
tt rocks install crud
527+
pip3 install cmake==3.15.3
528+
tt rocks install crud 1.4.2
515529
516530
- name: Run tests
517-
run: make test-pure-install
531+
run: |
532+
make test-pure-install
533+
if: matrix.target.os == 'ubuntu'
534+
535+
- name: Run tests
536+
run: |
537+
source .venv/bin/activate
538+
make test-pure-install
539+
if: matrix.target.os == 'debian'
518540

519541
publish_deb:
520542
if: startsWith(github.ref, 'refs/tags')
521543

522544
needs:
523545
- run_tests_deb
524546

525-
runs-on: ubuntu-20.04
547+
runs-on: ubuntu-24.04
526548

527549
strategy:
528550
fail-fast: false
@@ -540,7 +562,7 @@ jobs:
540562

541563
steps:
542564
- name: Clone the connector repo
543-
uses: actions/checkout@v3
565+
uses: actions/checkout@v4
544566

545567
- name: Install tools for package publishing
546568
run: sudo apt install -y curl make

‎.github/workflows/reusable_testing.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ on:
1111

1212
jobs:
1313
run_tests:
14-
runs-on: ubuntu-20.04
14+
runs-on: ubuntu-24.04
1515
steps:
1616
- name: Clone the tarantool-python connector
1717
uses: actions/checkout@v4
@@ -43,6 +43,7 @@ jobs:
4343
run: |
4444
curl -L https://tarantool.io/release/2/installer.sh | bash
4545
sudo apt install -y tt
46-
tt rocks install crud
46+
pip3 install cmake==3.15.3
47+
tt rocks install crud 1.4.2
4748
4849
- run: make test

‎.github/workflows/testing.yml

Lines changed: 26 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -21,19 +21,15 @@ jobs:
2121
(github.event_name == 'pull_request' &&
2222
github.event.pull_request.head.repo.full_name != github.repository)
2323

24-
runs-on: ubuntu-20.04
24+
runs-on: ubuntu-22.04
2525

2626
strategy:
2727
fail-fast: false
2828
matrix:
2929
tarantool:
30-
- '1.10'
31-
- '2.8'
32-
- '2.10'
3330
- '2.11'
3431
- 'master'
3532
python:
36-
- '3.7'
3733
- '3.8'
3834
- '3.9'
3935
- '3.10'
@@ -59,18 +55,22 @@ jobs:
5955

6056
steps:
6157
- name: Clone the connector
62-
uses: actions/checkout@v3
58+
uses: actions/checkout@v4
6359

6460
- name: Setup tt
6561
run: |
6662
curl -L https://tarantool.io/release/2/installer.sh | sudo bash
6763
sudo apt install -y tt
6864
tt version
69-
tt init
65+
tt init
66+
67+
# Waiting until `checks` repo will be updated.
68+
- name: Install old CMake
69+
run: pip3 install cmake==3.15.3
7070

7171
- name: Install tarantool ${{ matrix.tarantool }}
7272
if: matrix.tarantool != 'master'
73-
uses: tarantool/setup-tarantool@v2
73+
uses: tarantool/setup-tarantool@v3
7474
with:
7575
tarantool-version: ${{ matrix.tarantool }}
7676

@@ -123,8 +123,7 @@ jobs:
123123
run: pip3 install -r requirements-test.txt
124124

125125
- name: Install the crud module for testing purposes
126-
run: |
127-
tt rocks install crud
126+
run: tt rocks install crud 1.4.2
128127

129128
- name: Run tests
130129
run: make test
@@ -142,34 +141,28 @@ jobs:
142141
github.event.pull_request.head.repo.full_name != github.repository &&
143142
github.event.label.name == 'full-ci')
144143

145-
runs-on: ubuntu-20.04
144+
runs-on: ubuntu-22.04
146145

147146
strategy:
148147
fail-fast: false
149148
matrix:
150149
tarantool:
151-
- bundle: 'sdk-1.10.15-0-r563'
152-
path: 'release/linux/x86_64/1.10/'
153-
- bundle: 'sdk-2.8.4-0-r563'
154-
path: 'release/linux/x86_64/2.8/'
155-
- bundle: 'sdk-gc64-2.10.7-0-r563.linux.x86_64'
156-
path: 'release/linux/x86_64/2.10/'
157150
- bundle: 'sdk-gc64-2.11.0-0-r563.linux.x86_64'
158151
path: 'release/linux/x86_64/2.11/'
159-
python: ['3.7', '3.11']
152+
python: ['3.11']
160153

161154
steps:
162155
- name: Clone the connector
163156
# `ref` as merge request is needed for pull_request_target because this
164157
# target runs in the context of the base commit of the pull request.
165-
uses: actions/checkout@v3
158+
uses: actions/checkout@v4
166159
if: github.event_name == 'pull_request_target'
167160
with:
168161
ref: refs/pull/${{ github.event.pull_request.number }}/merge
169162

170163
- name: Clone the connector
171164
if: github.event_name != 'pull_request_target'
172-
uses: actions/checkout@v3
165+
uses: actions/checkout@v4
173166

174167
- name: Install Tarantool EE SDK
175168
run: |
@@ -196,7 +189,8 @@ jobs:
196189
source tarantool-enterprise/env.sh
197190
curl -L https://tarantool.io/release/2/installer.sh | bash
198191
sudo apt install -y tt
199-
tt rocks install crud TARANTOOL_DIR=$PWD/tarantool-enterprise
192+
pip3 install cmake==3.15.3
193+
tt rocks install crud 1.4.2 TARANTOOL_DIR=$PWD/tarantool-enterprise
200194
201195
- name: Run tests
202196
run: |
@@ -215,7 +209,7 @@ jobs:
215209
if: (github.event_name == 'push') ||
216210
(github.event_name == 'pull_request' &&
217211
github.event.pull_request.head.repo.full_name != github.repository)
218-
runs-on: ubuntu-20.04
212+
runs-on: ubuntu-22.04
219213

220214
strategy:
221215
fail-fast: false
@@ -224,14 +218,13 @@ jobs:
224218
tarantool:
225219
- '2.11'
226220
python:
227-
- '3.7'
228221
- '3.11'
229222
steps:
230223
- name: Clone the connector repo
231-
uses: actions/checkout@v3
224+
uses: actions/checkout@v4
232225

233226
- name: Install tarantool ${{ matrix.tarantool }}
234-
uses: tarantool/setup-tarantool@v2
227+
uses: tarantool/setup-tarantool@v3
235228
with:
236229
tarantool-version: ${{ matrix.tarantool }}
237230

@@ -246,14 +239,19 @@ jobs:
246239
- name: Install the package with pip
247240
run: pip3 install git+$GITHUB_SERVER_URL/$GITHUB_REPOSITORY@$GITHUB_REF
248241

242+
# Waiting until `checks` repo will be updated.
243+
- name: Install old CMake
244+
run: pip3 install cmake==3.15.3
245+
249246
- name: Install test requirements
250247
run: pip3 install -r requirements-test.txt
251248

252249
- name: Install the crud module for testing purposes
253250
run: |
254251
curl -L https://tarantool.io/release/2/installer.sh | bash
255252
sudo apt install -y tt
256-
tt rocks install crud
253+
pip3 install cmake==3.15.3
254+
tt rocks install crud 1.4.2
257255
258256
- name: Run tests
259257
run: make test-pure-install
@@ -277,12 +275,11 @@ jobs:
277275
tarantool:
278276
- '2.11.0.g247a9a418-1'
279277
python:
280-
- '3.7'
281278
- '3.11'
282279

283280
steps:
284281
- name: Clone the connector
285-
uses: actions/checkout@v3
282+
uses: actions/checkout@v4
286283

287284
- name: Setup Python for tests
288285
uses: actions/setup-python@v4
@@ -347,11 +344,10 @@ jobs:
347344
tarantool:
348345
- '2.11.0.g247a9a418-1'
349346
python:
350-
- '3.7'
351347
- '3.11'
352348
steps:
353349
- name: Clone the connector repo
354-
uses: actions/checkout@v3
350+
uses: actions/checkout@v4
355351

356352
- name: Setup Python for tests
357353
uses: actions/setup-python@v4

‎.readthedocs.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,6 @@ python:
1313
- method: pip
1414
path: .
1515
- requirements: docs/requirements.txt
16+
17+
sphinx:
18+
configuration: docs/source/conf.py

0 commit comments

Comments
 (0)
Please sign in to comment.