Skip to content

fix import bug when ipex is available but sentence_transformers is no… #4234

fix import bug when ipex is available but sentence_transformers is no…

fix import bug when ipex is available but sentence_transformers is no… #4234

Workflow file for this run

name: Generation Utils - Test (deprecated)
on:
push:
branches:
- main
- v*-release
pull_request:
branches:
- main
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
jobs:
build:
runs-on: ubuntu-22.04
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: 3.9
- name: Install dependencies
run: |
pip install --upgrade pip
pip install .[tests] transformers[testing]==4.43.*
- name: Test with Pytest
run: |
pytest tests/generation/