mirror of
https://github.com/qdrant/fastembed.git
synced 2026-07-31 23:20:55 -05:00
* new: drop python3.9, replace optional and union with | * new: remove python 3.9 from pyproject * refactor: replace remaining union and optional with | * new: remove optional and union in dataclasses * fix: add typealias to numpy type * new: replace union with | in token count
61 lines
1.4 KiB
YAML
61 lines
1.4 KiB
YAML
name: Tests
|
||
|
||
on:
|
||
pull_request:
|
||
branches: [ master, main, gpu ]
|
||
workflow_dispatch:
|
||
|
||
|
||
env:
|
||
CARGO_TERM_COLOR: always
|
||
|
||
jobs:
|
||
test:
|
||
|
||
strategy:
|
||
matrix:
|
||
python-version:
|
||
- '3.10.x'
|
||
- '3.11.x'
|
||
- '3.12.x'
|
||
- '3.13.x'
|
||
os:
|
||
- ubuntu-latest
|
||
- macos-latest
|
||
- windows-latest
|
||
exclude:
|
||
# Exclude 3.10–3.12 for macOS and Windows
|
||
- os: macos-latest
|
||
python-version: '3.10.x'
|
||
- os: macos-latest
|
||
python-version: '3.11.x'
|
||
- os: macos-latest
|
||
python-version: '3.12.x'
|
||
- os: windows-latest
|
||
python-version: '3.10.x'
|
||
- os: windows-latest
|
||
python-version: '3.11.x'
|
||
- os: windows-latest
|
||
python-version: '3.12.x'
|
||
|
||
runs-on: ${{ matrix.os }}
|
||
|
||
name: Python ${{ matrix.python-version }} on ${{ matrix.os }} test
|
||
|
||
steps:
|
||
- uses: actions/checkout@v3
|
||
- name: Set up Python
|
||
uses: actions/setup-python@v5
|
||
with:
|
||
python-version: ${{ matrix.python-version }}
|
||
- name: Install dependencies
|
||
run: |
|
||
python -m pip install poetry
|
||
poetry config virtualenvs.create false
|
||
poetry install --no-interaction --no-ansi --without dev,docs
|
||
|
||
- name: Run pytest
|
||
env:
|
||
HF_TOKEN: ${{ secrets.HF_TOKEN }}
|
||
run: |
|
||
poetry run pytest |