Skip to content

Commit

Permalink
Create 'tests-openvino' extra dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
nikita-savelyevv committed Dec 5, 2024
1 parent 19e0a4f commit a638d0d
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test_openvino.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ jobs:
run: |
pip install --upgrade pip
pip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cpu
pip install .[openvino,openvino-tokenizers,diffusers,tests] transformers[testing]
pip install .[openvino,openvino-tokenizers,diffusers,tests,tests-openvino] transformers[testing]
- if: ${{ matrix.transformers-version != 'latest' }}
name: Downgrade Transformers and Accelerate
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test_openvino_full.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ jobs:
python -m pip install --upgrade pip
# Install PyTorch CPU to prevent unnecessary downloading/installing of CUDA packages
pip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cpu
pip install .[tests]
pip install .[tests,tests-openvino]
- name: Install openvino-nightly
if: ${{ matrix.openvino == 'ov-nightly' }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test_openvino_slow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ jobs:
run: |
pip install --upgrade pip
pip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cpu
pip install .[openvino,tests] transformers[testing]
pip install .[openvino,tests,tests-openvino] transformers[testing]
pip uninstall -y nncf
- if: ${{ matrix.transformers-version != 'latest' }}
Expand Down
3 changes: 1 addition & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,6 @@
"sentence-transformers",
"open_clip_torch>=2.26.1",
"peft",
"librosa",
"soundfile",
]

QUALITY_REQUIRE = ["black~=23.1", "ruff==0.4.4"]
Expand All @@ -70,6 +68,7 @@
"diffusers": ["diffusers"],
"quality": QUALITY_REQUIRE,
"tests": TESTS_REQUIRE,
"tests-openvino": ["datasets[audio]>=1.4.0"]
}

setup(
Expand Down

0 comments on commit a638d0d

Please sign in to comment.