-
Notifications
You must be signed in to change notification settings - Fork 42
59 lines (57 loc) · 1.66 KB
/
python-pytest.yml
File metadata and controls
59 lines (57 loc) · 1.66 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
name: Run Parallelized Pytest
on:
push:
branches:
- master
paths:
- 'vectorai/**'
- 'tests/**'
- 'setup.py'
pull_request:
branches:
- master
paths:
- 'vectorai/**'
- 'vectorai/api/**'
- 'tests/**'
- 'setup.py'
- '.github/workflows/python-pytest.yml'
jobs:
run_test:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.6, 3.7]
test-path:
- tests/test_client.py
- tests/test_doc_utils.py
- tests/test_error.py
- tests/test_models.py
- tests/test_read.py
- tests/test_search.py
- tests/test_write_collection_basics.py
- tests/test_write_deployed_models.py
- tests/test_write_documents.py
- tests/test_write_edit.py
- tests/test_write_insert.py
- tests/test_write_misc.py
- tests/test_write_multiprocessing.py
- tests/test_write_retrieve_and_encode.py
- tests/analytics/api/test_comparator.py
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install -e .['all']
- name: Run Tests
env:
USERNAME: ${{ secrets.USERNAME }}
API_KEY: ${{ secrets.API_KEY }}
VI_USERNAME: ${{ secrets.VI_USERNAME }}
VI_API_KEY: ${{ secrets.VI_API_KEY }}
run: python -m pytest ${{ matrix.test-path }} --use_client --reruns 5 --reruns-delay 1