Skip to content

Run API Tests

Run API Tests #67

Workflow file for this run

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