-
Notifications
You must be signed in to change notification settings - Fork 120
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add a full OV testing GHA workflow for nightly #985
Merged
IlyasMoutawwakil
merged 16 commits into
huggingface:main
from
nikita-savelyevv:separate-ov-nightly-workflow
Dec 5, 2024
Merged
Changes from 12 commits
Commits
Show all changes
16 commits
Select commit
Hold shift + click to select a range
c05f9a0
Add a separate ov nightly GHA workflow
nikita-savelyevv 0b70651
Remove ov-nightly and nncf-develop from slow tests
nikita-savelyevv 0eb3b4c
Use Python 3.9
nikita-savelyevv 9c05797
Add a combination for ov-stable and nncf-develop
nikita-savelyevv 3e8ce54
Remove large model after testing
nikita-savelyevv d26b222
Merge branch 'main' into separate-ov-nightly-workflow
nikita-savelyevv c1d46da
Revert "Remove large model after testing"
nikita-savelyevv 2b2481c
Merge branch 'main' into separate-ov-nightly-workflow
nikita-savelyevv 3fe8ed2
Temporary cache dir
nikita-savelyevv 0ab79e0
Revert "Temporary cache dir"
nikita-savelyevv e660be3
Merge branch 'main' into separate-ov-nightly-workflow
nikita-savelyevv 5005854
Lower verbosity
nikita-savelyevv bdc1102
Reorder install commands
nikita-savelyevv c3e7a60
Trigger Tests
nikita-savelyevv b6e1813
Move transformers installation to the end
nikita-savelyevv 5df88b2
Update .github/workflows/test_openvino_slow.yml
IlyasMoutawwakil File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,88 @@ | ||
name: OpenVINO - Full Test | ||
|
||
on: | ||
workflow_dispatch: | ||
schedule: | ||
- cron: "41 3 * * *" # run every day at 3:41 | ||
push: | ||
branches: | ||
- v*-release | ||
pull_request: | ||
types: [opened, synchronize, reopened, labeled] | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
build: | ||
if: ${{ (github.event_name == 'workflow_dispatch') || (github.event_name == 'schedule') || (github.event_name == 'push') || contains( github.event.pull_request.labels.*.name, 'openvino-test') }} | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
include: | ||
- python-version: "3.9" | ||
os: "ubuntu-22.04" | ||
transformers-version: "latest" | ||
openvino: "ov-stable" | ||
nncf: "nncf-stable" | ||
- python-version: "3.9" | ||
os: "ubuntu-22.04" | ||
transformers-version: "latest" | ||
openvino: "ov-nightly" | ||
nncf: "nncf-stable" | ||
- python-version: "3.9" | ||
os: "ubuntu-22.04" | ||
transformers-version: "latest" | ||
openvino: "ov-stable" | ||
nncf: "nncf-develop" | ||
- python-version: "3.9" | ||
os: "ubuntu-22.04" | ||
transformers-version: "latest" | ||
openvino: "ov-nightly" | ||
nncf: "nncf-develop" | ||
|
||
runs-on: ${{ matrix.os }} | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Setup Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
|
||
- name: Install lowest compatible transformers version | ||
if: ${{ matrix.transformers-version != 'latest' }} | ||
run: pip install transformers==${{ matrix.transformers-version }} | ||
|
||
- name: Install dependencies | ||
run: | | ||
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] | ||
|
||
- name: Install openvino-nightly | ||
if: ${{ matrix.openvino == 'ov-nightly' }} | ||
run: pip install --pre -U openvino openvino-tokenizers --extra-index-url https://storage.openvinotoolkit.org/simple/wheels/nightly | ||
|
||
- name: Install openvino release | ||
if: ${{ matrix.openvino == 'ov-stable' }} | ||
run: pip install .[openvino] | ||
IlyasMoutawwakil marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
||
- name: Install nncf develop | ||
if: ${{ matrix.nncf == 'nncf-develop' }} | ||
run: pip install git+https://github.com/openvinotoolkit/nncf.git | ||
|
||
- name: Install nncf release | ||
if: ${{ matrix.nncf == 'nncf-stable' }} | ||
run: pip install .[nncf] | ||
|
||
- name: Pip freeze | ||
run: pip freeze | ||
|
||
- name: OpenVINO tests | ||
run: pytest tests/openvino --durations=0 | ||
env: | ||
RUN_SLOW: 1 | ||
HF_HUB_READ_TOKEN: ${{ secrets.HF_HUB_READ_TOKEN }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
installing transformers before
pip install .[tests]
might result in the later overriding the intended versionThere was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! Fixed