Skip to content

Commit

Permalink
Introduce more readable job names
Browse files Browse the repository at this point in the history
  • Loading branch information
nikita-savelyevv committed Nov 4, 2024
1 parent 1edafd8 commit 1063b95
Showing 1 changed file with 23 additions and 10 deletions.
33 changes: 23 additions & 10 deletions .github/workflows/test_openvino_full.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,18 +24,18 @@ jobs:
- python-version: "3.12"
os: "ubuntu-22.04"
transformers-version: "latest"
openvino: "openvino openvino-tokenizers"
nncf: "nncf"
openvino: "latest"
nncf: "latest"
- python-version: "3.12"
os: "ubuntu-22.04"
transformers-version: "latest"
openvino: "--pre -U openvino openvino-tokenizers --extra-index-url https://storage.openvinotoolkit.org/simple/wheels/nightly"
nncf: "nncf"
openvino: "nightly"
nncf: "latest"
- python-version: "3.12"
os: "ubuntu-22.04"
transformers-version: "latest"
openvino: "--pre -U openvino openvino-tokenizers --extra-index-url https://storage.openvinotoolkit.org/simple/wheels/nightly"
nncf: "git+https://github.com/openvinotoolkit/nncf.git"
openvino: "nightly"
nncf: "develop"

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

Expand All @@ -55,16 +55,29 @@ 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 ${{ matrix.openvino }}
pip install .[tests]
- name: Install openvino-nightly
if: ${{ matrix.openvino == 'nightly' }}
run: pip install --pre -U openvino openvino-tokenizers --extra-index-url https://storage.openvinotoolkit.org/simple/wheels/nightly

- name: Install openvino-latest
if: ${{ matrix.openvino != 'nightly' }}
run: pip install .[openvino]

- name: Install nncf develop
if: ${{ matrix.nncf == 'develop' }}
run: pip install git+https://github.com/openvinotoolkit/nncf.git

- name: Install nncf-latest
if: ${{ matrix.nncf != 'develop' }}
run: pip install .[nncf]

- name: Pip freeze
run: pip freeze

- name: OpenVINO tests
run: |
pip install ${{ matrix.nncf }}
pytest tests/openvino -s --durations=0
run: pytest tests/openvino -s --durations=0
env:
RUN_SLOW: 1
HF_HUB_READ_TOKEN: ${{ secrets.HF_HUB_READ_TOKEN }}

0 comments on commit 1063b95

Please sign in to comment.