Skip to content

Commit 7238e74

Browse files
authored
Remove tests with optimum installed from source (#819)
* remove tests with optimum installed from source * add test with lower version of supported transformers
1 parent db1c1ab commit 7238e74

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

.github/workflows/test_openvino_basic.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,12 @@ jobs:
2323
# Testing lower and upper bound of supported Python versions
2424
# This also ensures that the test fails if dependencies break for Python 3.7
2525
python-version: ["3.8", "3.12"]
26-
optimum: ['optimum', 'git+https://github.com/huggingface/optimum.git']
2726
os: ["ubuntu-22.04", "windows-latest"]
27+
transformers-version: ["4.42.*"]
28+
include:
29+
- transformers-version: "4.36.0"
30+
python-version: "3.12"
31+
os: "ubuntu-22.04"
2832

2933
runs-on: ${{ matrix.os }}
3034

@@ -41,7 +45,8 @@ jobs:
4145
# optimum or transformers to a specific version
4246
# Install PyTorch CPU to prevent unnecessary downloading/installing of CUDA packages
4347
pip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cpu
44-
pip install .[tests] openvino ${{ matrix.optimum}}
48+
pip install transformers==${{ matrix.transformers-version }}
49+
pip install .[tests] openvino
4550
4651
- name: Pip freeze
4752
run: pip freeze

0 commit comments

Comments
 (0)