Skip to content

Commit 5f5aefe

Browse files
ci: try to run install tests
1 parent 3392f46 commit 5f5aefe

File tree

1 file changed

+51
-0
lines changed

1 file changed

+51
-0
lines changed

.github/workflows/testing.yml

+51
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,57 @@ jobs:
148148
env:
149149
TEST_TNT_SSL: ${{ matrix.tarantool == '2.10.0-1-gfa775b383-r486-linux-x86_64' }}
150150

151+
run_tests_with_install_linux:
152+
# We want to run on external PRs, but not on our own internal
153+
# PRs as they'll be run by the push to the branch.
154+
#
155+
# The main trick is described here:
156+
# https://github.com/Dart-Code/Dart-Code/pull/2375
157+
if: (github.event_name == 'push') ||
158+
(github.event_name == 'pull_request' &&
159+
github.event.pull_request.head.repo.full_name != github.repository)
160+
runs-on: ubuntu-20.04
161+
162+
strategy:
163+
fail-fast: false
164+
165+
matrix:
166+
tarantool:
167+
- '2.10'
168+
python:
169+
- '3.6'
170+
- '3.7'
171+
- '3.8'
172+
- '3.9'
173+
- '3.10'
174+
steps:
175+
- name: Clone the connector repo
176+
uses: actions/checkout@v2
177+
178+
- name: Remove connector source code
179+
run: |
180+
rm -rf tarantool
181+
rm setup.py
182+
183+
- name: Install tarantool ${{ matrix.tarantool }}
184+
uses: tarantool/setup-tarantool@v1
185+
with:
186+
tarantool-version: ${{ matrix.tarantool }}
187+
188+
- name: Setup Python for tests
189+
uses: actions/setup-python@v2
190+
with:
191+
python-version: ${{ matrix.python }}
192+
193+
- name: Install the package
194+
run: pip install git+$GITHUB_SERVER_URL/$GITHUB_REPOSITORY"@"$GITHUB_REF_NAME
195+
196+
- name: Install test requirements
197+
run: pip install -r requirements-test.txt
198+
199+
- name: Run tests
200+
run: python -m unittest
201+
151202
run_tests_ce_windows:
152203
# We want to run on external PRs, but not on our own internal
153204
# PRs as they'll be run by the push to the branch.

0 commit comments

Comments
 (0)