-
Notifications
You must be signed in to change notification settings - Fork 298
[GHA] Add Code Coverage workflow #4071
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
Draft
mkruszyx
wants to merge
11
commits into
openvinotoolkit:develop
Choose a base branch
from
mkruszyx:coverage
base: develop
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Changes from 1 commit
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
349250b
coverage part 1
mkruszyx 46c0d3a
enable pull_request trigger for testing purposes
mkruszyx 3335295
fix python tests cmd
mkruszyx 76f5200
enable cuda tests
mkruszyx b62e122
enable fuzz test
mkruszyx 43cf8d6
enable fuzz test (python 3.11)
mkruszyx da9dc44
remove fuzz test / use multiple flags
mkruszyx 81e6934
switch composite-action to master
mkruszyx d605bad
bump codecov-action to v7.0.0
mkruszyx 9d5fd0f
Merge branch 'develop' into coverage
mkruszyx 16a7b64
Merge branch 'develop' into coverage
mkruszyx 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 hidden or 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,134 @@ | ||
| schema_version: 1 | ||
| suite: python | ||
| reporting: | ||
| label: Python | ||
| artifact_group: python | ||
| artifact_name_template: coverage-{suite}-{lane} | ||
| selection_env: PY_TEST_NAMES | ||
| stats_file: python-coverage-stats.env | ||
| duration_file: python-test-durations.csv | ||
| coverage_file: python-coverage.xml | ||
| debug_dirs: | ||
| - src: .tmp/python-coverage | ||
| dest: python-coverage-debug | ||
| uploads: | ||
| - name: NNCF Python | ||
| artifact_pattern: coverage-python-* | ||
| file: python-coverage.xml | ||
| key: nncf_python_xml | ||
| flag: nncf-python | ||
|
|
||
| tests: | ||
| - name: common | ||
| kind: command | ||
| profiles: [cpu] | ||
| command: >- | ||
| python3 -m pytest -ra --durations=30 -n2 ${PYTEST_COVERAGE_ARGS} | ||
| tests/common --junitxml nncf-tests.xml | ||
|
|
||
| - name: onnx | ||
| kind: command | ||
| profiles: [cpu] | ||
| command: >- | ||
| python3 -m pytest -ra --durations=30 -n4 ${PYTEST_COVERAGE_ARGS} | ||
| tests/onnx --junitxml nncf-tests.xml | ||
|
|
||
| - name: openvino | ||
| kind: command | ||
| profiles: [cpu] | ||
| command: >- | ||
| ONEDNN_MAX_CPU_ISA=AVX2 python3 -m pytest -ra --durations=30 -n4 --dist loadscope | ||
| ${PYTEST_COVERAGE_ARGS} tests/openvino --junitxml nncf-tests.xml | ||
|
|
||
| - name: torch_cpu | ||
| kind: command | ||
| profiles: [cpu] | ||
| command: >- | ||
| python3 -m pytest -ra -n2 --durations=30 ${PYTEST_COVERAGE_ARGS} | ||
| tests/torch -m "not cuda" --junitxml nncf-tests.xml | ||
|
|
||
| - name: tools | ||
| kind: command | ||
| profiles: [cpu] | ||
| command: >- | ||
| python3 -m pytest -ra --durations=30 ${PYTEST_COVERAGE_ARGS} | ||
| tests/tools --junitxml nncf-tests.xml | ||
|
|
||
| - name: executorch | ||
| kind: command | ||
| profiles: [cpu] | ||
| command: >- | ||
| python3 -m pytest -ra --durations=30 ${PYTEST_COVERAGE_ARGS} | ||
| tests/executorch --junitxml nncf-tests.xml | ||
|
|
||
| - name: wc_1 | ||
| kind: command | ||
| profiles: [cpu] | ||
| command: >- | ||
| python3 -m pytest -s -ra ${PYTEST_COVERAGE_ARGS} | ||
| tests/post_training/test_quantize_conformance.py::test_weight_compression | ||
| --junit-xml=nncf-tests.xml | ||
| --durations-path=tests/post_training/data/wc_test_durations.json | ||
| --splitting-algorithm=least_duration | ||
| --splits 6 | ||
| --group 1 | ||
|
|
||
| - name: wc_2 | ||
| kind: command | ||
| profiles: [cpu] | ||
| command: >- | ||
| python3 -m pytest -s -ra ${PYTEST_COVERAGE_ARGS} | ||
| tests/post_training/test_quantize_conformance.py::test_weight_compression | ||
| --junit-xml=nncf-tests.xml | ||
| --durations-path=tests/post_training/data/wc_test_durations.json | ||
| --splitting-algorithm=least_duration | ||
| --splits 6 | ||
| --group 2 | ||
|
|
||
| - name: wc_3 | ||
| kind: command | ||
| profiles: [cpu] | ||
| command: >- | ||
| python3 -m pytest -s -ra ${PYTEST_COVERAGE_ARGS} | ||
| tests/post_training/test_quantize_conformance.py::test_weight_compression | ||
| --junit-xml=nncf-tests.xml | ||
| --durations-path=tests/post_training/data/wc_test_durations.json | ||
| --splitting-algorithm=least_duration | ||
| --splits 6 | ||
| --group 3 | ||
|
|
||
| - name: wc_4 | ||
| kind: command | ||
| profiles: [cpu] | ||
| command: >- | ||
| python3 -m pytest -s -ra ${PYTEST_COVERAGE_ARGS} | ||
| tests/post_training/test_quantize_conformance.py::test_weight_compression | ||
| --junit-xml=nncf-tests.xml | ||
| --durations-path=tests/post_training/data/wc_test_durations.json | ||
| --splitting-algorithm=least_duration | ||
| --splits 6 | ||
| --group 4 | ||
|
|
||
| - name: wc_5 | ||
| kind: command | ||
| profiles: [cpu] | ||
| command: >- | ||
| python3 -m pytest -s -ra ${PYTEST_COVERAGE_ARGS} | ||
| tests/post_training/test_quantize_conformance.py::test_weight_compression | ||
| --junit-xml=nncf-tests.xml | ||
| --durations-path=tests/post_training/data/wc_test_durations.json | ||
| --splitting-algorithm=least_duration | ||
| --splits 6 | ||
| --group 5 | ||
|
|
||
| - name: wc_6 | ||
| kind: command | ||
| profiles: [cpu] | ||
| command: >- | ||
| python3 -m pytest -s -ra ${PYTEST_COVERAGE_ARGS} | ||
| tests/post_training/test_quantize_conformance.py::test_weight_compression | ||
| --junit-xml=nncf-tests.xml | ||
| --durations-path=tests/post_training/data/wc_test_durations.json | ||
| --splitting-algorithm=least_duration | ||
| --splits 6 | ||
| --group 6 | ||
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.