Skip to content

Feat: Add Aliyun (DashScope) as new reranker model provider #300

Feat: Add Aliyun (DashScope) as new reranker model provider

Feat: Add Aliyun (DashScope) as new reranker model provider #300

Workflow file for this run

name: Test
on:
pull_request:
branches: [ main ]
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.10", "3.11", "3.12"]
fail-fast: false
steps:
- uses: actions/checkout@v4
- name: Install uv
uses: astral-sh/setup-uv@v5
with:
python-version: ${{ matrix.python-version }}
- name: Load cached venv
id: cached-dependencies
uses: actions/cache@v3
with:
path: .venv
key: venv-${{ runner.os }}-${{ matrix.python-version }}-${{ hashFiles('pyproject.toml') }}
- name: Create venv and install dependencies
if: steps.cached-dependencies.outputs.cache-hit != 'true'
run: |
uv sync --all-extras && uv pip install mxbai-rerank
- name: Run tests
run: uv run pytest -v tests/providers tests/unit tests/common_types tests/test_deprecation_warnings.py