Skip to content

Commit f3dfc2c

Browse files
ci: run tests with rpm artifacts
Part of #198
1 parent 9877d0b commit f3dfc2c

File tree

1 file changed

+61
-0
lines changed

1 file changed

+61
-0
lines changed

.github/workflows/packing.yml

+61
Original file line numberDiff line numberDiff line change
@@ -244,3 +244,64 @@ jobs:
244244
run: |
245245
cat tarantool.log || true
246246
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:
274+
- '3.6'
275+
- '3.10'
276+
277+
steps:
278+
- name: Clone the connector repo
279+
uses: actions/checkout@v3
280+
281+
- name: Setup Python
282+
run: dnf install -y python3 python3-libs python3-pip git
283+
284+
- name: Remove connector source code
285+
run: python3 .github/scripts/remove_source_code.py
286+
287+
- name: Install tarantool ${{ matrix.tarantool }}
288+
run: |
289+
curl -L https://tarantool.io/yeohchA/release/2/installer.sh | bash
290+
dnf install -y tarantool-${{ matrix.tarantool }}
291+
dnf install -y tarantool-devel-${{ matrix.tarantool }}
292+
293+
- name: Download rpm package artifact
294+
uses: actions/download-artifact@v3
295+
with:
296+
name: package_rpm
297+
298+
- name: Install the package from rpm artifacts
299+
run: dnf install -y RPMS/noarch/*.noarch.rpm
300+
301+
- name: Install test requirements
302+
run: pip3 install -r requirements-test.txt
303+
304+
- name: Run tests
305+
run: python3 -m unittest discover -v
306+
env:
307+
TEST_PURE_INSTALL: true

0 commit comments

Comments
 (0)