-
Notifications
You must be signed in to change notification settings - Fork 1
53 lines (44 loc) · 1.21 KB
/
run-api-tests.yml
File metadata and controls
53 lines (44 loc) · 1.21 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
name: Run API Tests
on:
release:
types: [created]
pull_request:
branches: "*"
workflow_dispatch:
branches: "*"
jobs:
deploy:
runs-on: ubuntu-latest
# Defined environment variables at the job level
env:
vector_space_id : ${{ secrets.VECTOR_SPACE_ID }}
user_token: ${{ secrets.USER_TOKEN }}
vecto_base_url: ${{ secrets.VECTO_BASE_URL }}
management_token: ${{ secrets.MANAGEMENT_TOKEN }}
VECTO_API_KEY: ${{ secrets.VECTO_API_KEY }}
steps:
- uses: actions/checkout@v6
- name: Set up Python
uses: actions/setup-python@v6
with:
python-version: '3.9'
- name: Build wheel
run: |
python -m pip install --upgrade pip
pip install wheel
python setup.py bdist_wheel --universal
- name: Install wheel
run: |
pip install dist/*.whl
- name: Install API test dependencies
run: |
python -m pip install -r tests/requirements.txt
- name: Run SDK Tests
run: |
pytest tests/test_sdk.py
- name: Run Management Tests
run: |
pytest tests/test_management.py
- name: Run VectorSpace API Tests
run: |
pytest tests/test_vectorspace.py