Skip to content

Commit 25e4bf4

Browse files
ci: run tests with RPM package
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 70adf7d commit 25e4bf4

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

0 commit comments

Comments
 (0)