@@ -14,49 +14,40 @@ concurrency:
1414  group : ${{ github.workflow }}-${{ github.head_ref || github.run_id }} 
1515  cancel-in-progress : true 
1616
17+ env :
18+   TRANSFORMERS_IS_CI : true 
19+ 
1720jobs :
1821  build :
1922    if : ${{ (github.event_name == 'workflow_dispatch') || (github.event_name == 'schedule') ||  (github.event_name == 'push') || contains( github.event.pull_request.labels.*.name, 'openvino-test') }} 
2023    strategy :
2124      fail-fast : false 
2225      matrix :
23-         include :
24-           - python-version : " 3.9" 
25-             os : " ubuntu-22.04" 
26-             transformers-version : " latest" 
27-             openvino : " ov-stable" 
28-             nncf : " nncf-stable" 
29-           - python-version : " 3.9" 
30-             os : " ubuntu-22.04" 
31-             transformers-version : " latest" 
32-             openvino : " ov-nightly" 
33-             nncf : " nncf-stable" 
34-           - python-version : " 3.9" 
35-             os : " ubuntu-22.04" 
36-             transformers-version : " latest" 
37-             openvino : " ov-stable" 
38-             nncf : " nncf-develop" 
39-           - python-version : " 3.9" 
40-             os : " ubuntu-22.04" 
41-             transformers-version : " latest" 
42-             openvino : " ov-nightly" 
43-             nncf : " nncf-develop" 
44- 
45-     runs-on : ${{ matrix.os }} 
26+         nncf : ["nncf-stable", "nncf-develop"] 
27+         openvino : ["ov-stable", "ov-nightly"] 
28+         transformers-version : ["latest"] 
29+ 
30+     runs-on : ubuntu-22.04 
4631
4732    steps :
48-       - uses : actions/checkout@v4 
49-       - name : Setup Python ${{ matrix.python-version }} 
33+       - name : Free Disk Space (Ubuntu) 
34+         uses : jlumbroso/free-disk-space@main 
35+ 
36+       - name : Checkout code 
37+         uses : actions/checkout@v4 
38+ 
39+       - name : Setup Python 
5040        uses : actions/setup-python@v5 
5141        with :
52-           python-version : ${{ matrix.python-version }} 
42+           python-version : 3.9 
5343
5444      - name : Install dependencies 
5545        run : | 
56-           python -m  pip install --upgrade pip 
46+           pip install --upgrade pip 
5747          # Install PyTorch CPU to prevent unnecessary downloading/installing of CUDA packages 
5848          pip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cpu 
59-           pip install .[tests] 
49+           pip install .[tests,diffusers] 
50+           pip uninstall opencv-python -y && pip install opencv-python-headless 
6051
6152name : Install openvino-nightly 
6253        if : ${{ matrix.openvino == 'ov-nightly' }} 
7869        if : ${{ matrix.transformers-version != 'latest' }} 
7970        run : pip install transformers==${{ matrix.transformers-version }} 
8071
81-       - if : ${{ matrix.transformers-version == 'latest' && matrix.os != 'windows-2019'  }} 
72+       - if : ${{ matrix.transformers-version == 'latest' }} 
8273        name : Install auto-gptq, autoawq 
8374        run : | 
8475          pip install auto-gptq "autoawq<0.2.8" --extra-index-url https://download.pytorch.org/whl/cpu 
0 commit comments