Skip to content

Commit 2f2a764

Browse files
authored
Add openvino-nightly to automated tests (#506)
1 parent 7f236c2 commit 2f2a764

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

.github/workflows/test_openvino.yml

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,9 @@ jobs:
1717
strategy:
1818
fail-fast: false
1919
matrix:
20-
python-version: [3.8, 3.9]
20+
python-version: [3.8, 3.11]
2121
os: [ubuntu-latest]
22+
openvino: ["openvino", "openvino-nightly"]
2223

2324
runs-on: ${{ matrix.os }}
2425
steps:
@@ -33,12 +34,9 @@ jobs:
3334
# install PyTorch CPU version to avoid installing CUDA packages on GitHub runner without GPU
3435
pip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cpu
3536
pip install .[openvino,nncf,tests,diffusers]
37+
- name: Install openvino-nightly (optional)
38+
run: pip uninstall -y openvino && pip install ${{ matrix.openvino }}
39+
if: matrix.openvino == 'openvino-nightly'
3640
- name: Test with Pytest
3741
run: |
3842
pytest tests/openvino/ --ignore test_modeling_basic
39-
- name: Test openvino-nightly import
40-
run: |
41-
pip uninstall -y openvino
42-
pip install openvino-nightly
43-
python -c "from optimum.intel import OVModelForCausalLM; OVModelForCausalLM.from_pretrained('hf-internal-testing/tiny-random-gpt2', export=True, compile=False)"
44-

0 commit comments

Comments
 (0)