Skip to content

fix: keep the model dtype in mean pooling embeddings (#754) #2167

fix: keep the model dtype in mean pooling embeddings (#754)

fix: keep the model dtype in mean pooling embeddings (#754) #2167

Workflow file for this run

name: Tests
on:
push:
branches: [ main ]
pull_request:
branches: [ 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'
- '3.14.x'
os:
- ubuntu-latest
- macos-latest
- windows-latest
exclude:
# Exclude 3.10–3.13 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: macos-latest
python-version: '3.13.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'
- os: windows-latest
python-version: '3.13.x'
runs-on: ${{ matrix.os }}
name: Python ${{ matrix.python-version }} on ${{ matrix.os }} test
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Set up Python
uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0
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 --durations=10