@@ -20,14 +20,14 @@ jobs:
20
20
if : (github.event_name == 'push') ||
21
21
(github.event_name == 'pull_request' &&
22
22
github.event.pull_request.head.repo.full_name != github.repository)
23
- runs-on : ubuntu-20 .04
23
+ runs-on : ubuntu-24 .04
24
24
25
25
strategy :
26
26
fail-fast : false
27
27
28
28
steps :
29
29
- name : Clone the connector repo
30
- uses : actions/checkout@v3
30
+ uses : actions/checkout@v4
31
31
# Checkout all tags for correct version computation.
32
32
with :
33
33
fetch-depth : 0
@@ -65,14 +65,14 @@ jobs:
65
65
if : (github.event_name == 'push') ||
66
66
(github.event_name == 'pull_request' &&
67
67
github.event.pull_request.head.repo.full_name != github.repository)
68
- runs-on : ubuntu-20 .04
68
+ runs-on : ubuntu-24 .04
69
69
70
70
strategy :
71
71
fail-fast : false
72
72
73
73
steps :
74
74
- name : Clone the connector repo
75
- uses : actions/checkout@v3
75
+ uses : actions/checkout@v4
76
76
77
77
- name : Setup Python
78
78
uses : actions/setup-python@v4
83
83
run : python3 .github/scripts/remove_source_code.py
84
84
85
85
- name : Install tarantool
86
- uses : tarantool/setup-tarantool@v2
86
+ uses : tarantool/setup-tarantool@v3
87
87
with :
88
88
tarantool-version : ' 2.11'
89
89
@@ -99,10 +99,13 @@ jobs:
99
99
- name : Install test requirements
100
100
run : pip3 install -r requirements-test.txt
101
101
102
+ # Installation of the specific CMake version is a hotfix for
103
+ # https://github.com/tarantool/checks/issues/64
102
104
- name : Install the crud module for testing purposes
103
105
run : |
104
106
curl -L https://tarantool.io/release/2/installer.sh | bash
105
107
sudo apt install -y tt
108
+ pip3 install cmake==3.15.3
106
109
tt rocks install crud
107
110
108
111
- name : Run tests
@@ -127,7 +130,7 @@ jobs:
127
130
128
131
steps :
129
132
- name : Clone the connector repo
130
- uses : actions/checkout@v3
133
+ uses : actions/checkout@v4
131
134
132
135
- name : Setup Python
133
136
uses : actions/setup-python@v4
@@ -188,14 +191,14 @@ jobs:
188
191
- run_tests_pip_package_linux
189
192
- run_tests_pip_package_windows
190
193
191
- runs-on : ubuntu-20 .04
194
+ runs-on : ubuntu-24 .04
192
195
193
196
strategy :
194
197
fail-fast : false
195
198
196
199
steps :
197
200
- name : Clone the connector repo
198
- uses : actions/checkout@v3
201
+ uses : actions/checkout@v4
199
202
200
203
- name : Setup Python and basic packing tools
201
204
uses : actions/setup-python@v4
@@ -226,7 +229,7 @@ jobs:
226
229
if : (github.event_name == 'push') ||
227
230
(github.event_name == 'pull_request' &&
228
231
github.event.pull_request.head.repo.full_name != github.repository)
229
- runs-on : ubuntu-20 .04
232
+ runs-on : ubuntu-24 .04
230
233
231
234
container :
232
235
image : ${{ matrix.target.os }}:${{ matrix.target.dist }}
@@ -250,7 +253,7 @@ jobs:
250
253
run : dnf install -y git
251
254
252
255
- name : Clone the connector repo
253
- uses : actions/checkout@v3
256
+ uses : actions/checkout@v4
254
257
# Checkout all tags for correct version computation.
255
258
with :
256
259
fetch-depth : 0
@@ -293,7 +296,7 @@ jobs:
293
296
if : (github.event_name == 'push') ||
294
297
(github.event_name == 'pull_request' &&
295
298
github.event.pull_request.head.repo.full_name != github.repository)
296
- runs-on : ubuntu-20 .04
299
+ runs-on : ubuntu-24 .04
297
300
298
301
container :
299
302
image : ${{ matrix.target.os }}:${{ matrix.target.dist }}
@@ -312,7 +315,7 @@ jobs:
312
315
313
316
steps :
314
317
- name : Clone the connector repo
315
- uses : actions/checkout@v3
318
+ uses : actions/checkout@v4
316
319
317
320
- name : Setup Python and test running tools
318
321
# cmake rocks fail to install as expected without findutils:
@@ -343,6 +346,7 @@ jobs:
343
346
run : |
344
347
curl -L https://tarantool.io/release/2/installer.sh | bash
345
348
sudo dnf install -y tt
349
+ pip3 install cmake==3.15.3
346
350
tt rocks install crud
347
351
348
352
- name : Run tests
@@ -354,7 +358,7 @@ jobs:
354
358
needs :
355
359
- run_tests_rpm
356
360
357
- runs-on : ubuntu-20 .04
361
+ runs-on : ubuntu-24 .04
358
362
359
363
strategy :
360
364
fail-fast : false
@@ -370,7 +374,7 @@ jobs:
370
374
371
375
steps :
372
376
- name : Clone the connector repo
373
- uses : actions/checkout@v3
377
+ uses : actions/checkout@v4
374
378
375
379
- name : Install tools for package publishing
376
380
run : sudo apt install -y curl make
@@ -404,14 +408,14 @@ jobs:
404
408
if : (github.event_name == 'push') ||
405
409
(github.event_name == 'pull_request' &&
406
410
github.event.pull_request.head.repo.full_name != github.repository)
407
- runs-on : ubuntu-20 .04
411
+ runs-on : ubuntu-24 .04
408
412
409
413
strategy :
410
414
fail-fast : false
411
415
412
416
steps :
413
417
- name : Clone the connector repo
414
- uses : actions/checkout@v3
418
+ uses : actions/checkout@v4
415
419
# Checkout all tags for correct version computation
416
420
with :
417
421
fetch-depth : 0
@@ -420,6 +424,7 @@ jobs:
420
424
run : |
421
425
sudo apt update
422
426
sudo apt install -y devscripts equivs
427
+ sudo apt install python3-setuptools python3-stdeb dh-python
423
428
424
429
- name : Make changelog entry for non-release build
425
430
if : startsWith(github.ref, 'refs/tags') != true
@@ -453,7 +458,7 @@ jobs:
453
458
if : (github.event_name == 'push') ||
454
459
(github.event_name == 'pull_request' &&
455
460
github.event.pull_request.head.repo.full_name != github.repository)
456
- runs-on : ubuntu-20 .04
461
+ runs-on : ubuntu-24 .04
457
462
458
463
container :
459
464
image : ${{ matrix.target.os }}:${{ matrix.target.dist }}
@@ -463,18 +468,20 @@ jobs:
463
468
464
469
matrix :
465
470
target :
471
+ - os : debian
472
+ dist : bullseye # 11
473
+ - os : debian
474
+ dist : bookworm # 12
466
475
- os : ubuntu
467
476
dist : focal # 20.04
468
477
- os : ubuntu
469
478
dist : jammy # 22.04
470
- - os : debian
471
- dist : buster # 10
472
- - os : debian
473
- dist : bullseye # 11
479
+ - os : ubuntu
480
+ dist : noble # 24.04
474
481
475
482
steps :
476
483
- name : Clone the connector repo
477
- uses : actions/checkout@v3
484
+ uses : actions/checkout@v4
478
485
479
486
- name : Prepare apt
480
487
run : apt update
@@ -504,25 +511,55 @@ jobs:
504
511
env :
505
512
DEBIAN_FRONTEND : noninteractive
506
513
514
+ - name : Create venv
515
+ run : |
516
+ apt install -y python3-venv
517
+ python3 -m venv .venv
518
+
507
519
- name : Install test requirements
508
520
run : pip3 install -r requirements-test.txt
521
+ if : matrix.target.dist != 'bookworm' && matrix.target.dist != 'noble'
522
+
523
+ - name : Install test requirements
524
+ run : |
525
+ . .venv/bin/activate
526
+ pip3 install -r requirements-test.txt
527
+ if : matrix.target.dist == 'bookworm' || matrix.target.dist == 'noble'
509
528
510
529
- name : Install the crud module for testing purposes
511
530
run : |
512
531
curl -L https://tarantool.io/release/2/installer.sh | bash
513
532
apt install -y tt
514
533
tt rocks install crud
534
+ if : matrix.target.dist != 'bookworm' && matrix.target.dist != 'noble'
535
+
536
+ - name : Install the crud module for testing purposes
537
+ run : |
538
+ . .venv/bin/activate
539
+ curl -L https://tarantool.io/release/3/installer.sh | bash
540
+ apt install -y tt
541
+ tt rocks install crud
542
+ if : matrix.target.dist == 'bookworm' || matrix.target.dist == 'noble'
515
543
516
544
- name : Run tests
517
545
run : make test-pure-install
546
+ if : matrix.target.dist != 'bookworm' && matrix.target.dist != 'noble'
547
+
548
+ - name : Run tests
549
+ run : |
550
+ . .venv/bin/activate
551
+ export PYTHONPATH=$PYTHONPATH:/usr/lib/python3.11:/usr/lib/python3.12:/usr/bin:/usr/lib/python3/dist-packages
552
+ export PATH=$PATH:/usr/lib/python3/dist-packages
553
+ make test-pure-install
554
+ if : matrix.target.dist == 'bookworm' || matrix.target.dist == 'noble'
518
555
519
556
publish_deb :
520
557
if : startsWith(github.ref, 'refs/tags')
521
558
522
559
needs :
523
560
- run_tests_deb
524
561
525
- runs-on : ubuntu-20 .04
562
+ runs-on : ubuntu-24 .04
526
563
527
564
strategy :
528
565
fail-fast : false
@@ -533,14 +570,18 @@ jobs:
533
570
dist : focal # 20.04
534
571
- os : ubuntu
535
572
dist : jammy # 22.04
573
+ - os : ubuntu
574
+ dist : noble # 24.04
536
575
- os : debian
537
576
dist : buster # 10
538
577
- os : debian
539
578
dist : bullseye # 11
579
+ - os : debian
580
+ dist : bookworm # 12
540
581
541
582
steps :
542
583
- name : Clone the connector repo
543
- uses : actions/checkout@v3
584
+ uses : actions/checkout@v4
544
585
545
586
- name : Install tools for package publishing
546
587
run : sudo apt install -y curl make
0 commit comments