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