@@ -244,3 +244,73 @@ jobs:
244
244
run : |
245
245
cat tarantool.log || true
246
246
kill $(cat tarantool.pid) || true
247
+
248
+ run_tests_rpm_package_install_fedora :
249
+ needs : pack_rpm
250
+
251
+ # We want to run on external PRs, but not on our own internal
252
+ # PRs as they'll be run by the push to the branch.
253
+ #
254
+ # The main trick is described here:
255
+ # https://github.com/Dart-Code/Dart-Code/pull/2375
256
+ if : (github.event_name == 'push') ||
257
+ (github.event_name == 'pull_request' &&
258
+ github.event.pull_request.head.repo.full_name != github.repository)
259
+ runs-on : ubuntu-20.04
260
+
261
+ container :
262
+ image : ${{ matrix.os }}
263
+
264
+ strategy :
265
+ fail-fast : false
266
+
267
+ matrix :
268
+ os :
269
+ - ' fedora:35'
270
+ - ' fedora:36'
271
+ tarantool :
272
+ - ' 2.10.3'
273
+ python : [ '3.10.7' ]
274
+ package : [ python3-tarantool ]
275
+ include :
276
+ - python : ' 3.6.15'
277
+ package : python36-tarantool
278
+
279
+ steps :
280
+ - name : Clone the connector repo
281
+ uses : actions/checkout@v3
282
+
283
+ - name : Setup Python
284
+ run : |
285
+ dnf install -y wget zlib-devel
286
+ wget https://www.python.org/ftp/python/${ matrix.python }/Python-${ matrix.python }.tar.xz
287
+ tar -xvf Python-${ matrix.python }.tar.xz
288
+ cd Python-${ matrix.python }
289
+ ./configure
290
+ make
291
+ make install
292
+
293
+ - name : Remove connector source code
294
+ run : python3 .github/scripts/remove_source_code.py
295
+
296
+ - name : Install tarantool ${{ matrix.tarantool }}
297
+ run : |
298
+ curl -L https://tarantool.io/yeohchA/release/2/installer.sh | bash
299
+ dnf install -y tarantool-${{ matrix.tarantool }}
300
+ dnf install -y tarantool-devel-${{ matrix.tarantool }}
301
+
302
+ - name : Download rpm package artifact
303
+ uses : actions/download-artifact@v3
304
+ with :
305
+ name : package_rpm
306
+
307
+ - name : Install the package from rpm artifacts
308
+ run : dnf install -y RPMS/noarch/${ matrix.package }-*.noarch.rpm
309
+
310
+ - name : Install test requirements
311
+ run : pip3 install -r requirements-test.txt
312
+
313
+ - name : Run tests
314
+ run : python3 -m unittest discover -v
315
+ env :
316
+ TEST_PURE_INSTALL : true
0 commit comments