@@ -271,3 +271,61 @@ jobs:
271
271
path : rpm_dist
272
272
retention-days : 1
273
273
if-no-files-found : error
274
+
275
+ run_tests_rpm :
276
+ needs : pack_rpm
277
+
278
+ # We want to run on external PRs, but not on our own internal
279
+ # PRs as they'll be run by the push to the branch.
280
+ #
281
+ # The main trick is described here:
282
+ # https://github.com/Dart-Code/Dart-Code/pull/2375
283
+ if : (github.event_name == 'push') ||
284
+ (github.event_name == 'pull_request' &&
285
+ github.event.pull_request.head.repo.full_name != github.repository)
286
+ runs-on : ubuntu-20.04
287
+
288
+ container :
289
+ image : ${{ matrix.target.os }}:${{ matrix.target.dist }}
290
+
291
+ strategy :
292
+ fail-fast : false
293
+
294
+ matrix :
295
+ target :
296
+ - os : fedora
297
+ dist : ' 34'
298
+ - os : fedora
299
+ dist : ' 35'
300
+ - os : fedora
301
+ dist : ' 36'
302
+
303
+ steps :
304
+ - name : Clone the connector repo
305
+ uses : actions/checkout@v3
306
+
307
+ - name : Setup Python and test running tools
308
+ run : dnf install -y python3 python3-libs python3-pip git make
309
+
310
+ - name : Remove connector source code
311
+ run : python3 .github/scripts/remove_source_code.py
312
+
313
+ - name : Install tarantool
314
+ run : |
315
+ curl -L https://tarantool.io/yeohchA/release/2/installer.sh | bash
316
+ dnf install -y tarantool tarantool-devel
317
+
318
+ - name : Download RPM artifacts
319
+ uses : actions/download-artifact@v3
320
+ with :
321
+ name : rpm_dist_${{ matrix.target.os }}_${{ matrix.target.dist }}
322
+ path : rpm_dist
323
+
324
+ - name : Install the package from rpm artifacts
325
+ run : dnf install -y rpm_dist/python3-tarantool-*.noarch.rpm
326
+
327
+ - name : Install test requirements
328
+ run : pip3 install -r requirements-test.txt
329
+
330
+ - name : Run tests
331
+ run : make test-pure-install
0 commit comments