Skip to content

Commit 0d2d54f

Browse files
ci: run tests with RPM artifacts
See [1] about CentOS support. Fedora 37 is not tested yet since there is no Tarantool for it. 1. #257 Part of #164, #198
1 parent 0c2449b commit 0d2d54f

File tree

1 file changed

+58
-0
lines changed

1 file changed

+58
-0
lines changed

.github/workflows/packing.yml

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

0 commit comments

Comments
 (0)