Skip to content
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

Only launch pytest with coverage in Makefile if env var is set #2072

Merged
merged 1 commit into from
Aug 22, 2023

Conversation

vshampor
Copy link
Contributor

Changes

Setting NNCF_COVERAGE env var will make commands such as make test-torch run pytest with coverage reports generated, otherwise the pytest runs without `coverage.

Reason for changes

Devs can now launch Makefile commands without running coverage by default, and if they really need to, they can prefix the make command: NNCF_COVERAGE=1 make test-torch.

Related tickets

N/A

Tests

precommit

@vshampor vshampor requested a review from a team as a code owner August 21, 2023 10:44
@codecov
Copy link

codecov bot commented Aug 21, 2023

Codecov Report

Merging #2072 (c1a707d) into develop (a1074e7) will increase coverage by 3.14%.
Report is 6 commits behind head on develop.
The diff coverage is 80.00%.

Additional details and impacted files
@@             Coverage Diff             @@
##           develop    #2072      +/-   ##
===========================================
+ Coverage    32.93%   36.08%   +3.14%     
===========================================
  Files          476      476              
  Lines        42391    42408      +17     
===========================================
+ Hits         13961    15302    +1341     
+ Misses       28430    27106    -1324     
Files Changed Coverage Δ
nncf/quantization/algorithms/algorithm.py 100.00% <ø> (ø)
nncf/torch/model_transformer.py 35.44% <0.00%> (ø)
nncf/torch/model_creation.py 36.26% <33.33%> (-0.10%) ⬇️
...common/quantization/quantizer_propagation/graph.py 84.49% <100.00%> (+11.95%) ⬆️
...quantization/algorithms/post_training/algorithm.py 76.85% <100.00%> (+0.66%) ⬆️

... and 42 files with indirect coverage changes

@vshampor vshampor merged commit 5fdcc46 into openvinotoolkit:develop Aug 22, 2023
11 checks passed
daniil-lyakhov pushed a commit to daniil-lyakhov/nncf that referenced this pull request Aug 25, 2023
…inotoolkit#2072)

### Changes
Setting `NNCF_COVERAGE` env var will make commands such as `make
test-torch` run pytest with `coverage` reports generated, otherwise the
pytest runs without `coverage.

### Reason for changes
Devs can now launch Makefile commands without running coverage by
default, and if they really need to, they can prefix the make command:
`NNCF_COVERAGE=1 make test-torch`.

### Related tickets
N/A

### Tests
precommit
andreyanufr pushed a commit to andreyanufr/nncf that referenced this pull request Sep 12, 2023
…inotoolkit#2072)

### Changes
Setting `NNCF_COVERAGE` env var will make commands such as `make
test-torch` run pytest with `coverage` reports generated, otherwise the
pytest runs without `coverage.

### Reason for changes
Devs can now launch Makefile commands without running coverage by
default, and if they really need to, they can prefix the make command:
`NNCF_COVERAGE=1 make test-torch`.

### Related tickets
N/A

### Tests
precommit
@vshampor vshampor deleted the coverage_via_flag branch January 9, 2024 14:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants