update coverage config (#6524)
* update coverage config * parallel * parallel * Apply suggestions from code review * Apply suggestions from code review * paralel * paralel * paralel * combine * combine * . * .. * .. * .. * rev * cb * cb * drop * drop * . * .. * ... * ... * ... * .
This commit is contained in:
parent
fd5cb7fcc3
commit
64d0fa4472
|
@ -68,7 +68,7 @@ jobs:
|
|||
- name: Test Package [only]
|
||||
run: |
|
||||
# NOTE: run coverage on tests does not propagare faler status for Win, https://github.com/nedbat/coveragepy/issues/1003
|
||||
python -m pytest pytorch_lightning -v --cov=pytorch_lightning --junitxml=junit/test-results-${{ runner.os }}-${{ matrix.python-version }}-${{ matrix.requires }}.xml
|
||||
coverage run --source pytorch_lightning -m pytest pytorch_lightning -v --junitxml=junit/test-results-${{ runner.os }}-${{ matrix.python-version }}-${{ matrix.requires }}.xml
|
||||
|
||||
- name: Upload pytest test results
|
||||
uses: actions/upload-artifact@v2
|
||||
|
|
|
@ -44,7 +44,7 @@ jobs:
|
|||
- name: Tests
|
||||
run: |
|
||||
# NOTE: run coverage on tests does not propagare faler status for Win, https://github.com/nedbat/coveragepy/issues/1003
|
||||
python -m pytest pytorch_lightning tests --cov=pytorch_lightning -v --durations=50 --junitxml=junit/test-results-${{ runner.os }}-torch${{ matrix.pytorch-version }}.xml
|
||||
coverage run --source pytorch_lightning -m pytest pytorch_lightning tests -v --durations=50 --junitxml=junit/test-results-${{ runner.os }}-torch${{ matrix.pytorch-version }}.xml
|
||||
shell: bash -l {0}
|
||||
|
||||
- name: Upload pytest results
|
||||
|
|
|
@ -134,7 +134,7 @@ jobs:
|
|||
- name: Tests
|
||||
run: |
|
||||
# NOTE: do not include coverage report here, see: https://github.com/nedbat/coveragepy/issues/1003
|
||||
python -m pytest pytorch_lightning tests --cov=pytorch_lightning -v --durations=50 --junitxml=junit/test-results-${{ runner.os }}-py${{ matrix.python-version }}-${{ matrix.requires }}.xml
|
||||
coverage run --source pytorch_lightning -m pytest pytorch_lightning tests -v --durations=50 --junitxml=junit/test-results-${{ runner.os }}-py${{ matrix.python-version }}-${{ matrix.requires }}.xml
|
||||
|
||||
- name: Examples
|
||||
run: |
|
||||
|
|
|
@ -78,7 +78,7 @@ jobs:
|
|||
displayName: 'Get legacy checkpoints'
|
||||
|
||||
- bash: |
|
||||
python -m pytest pytorch_lightning tests -v --cov=pytorch_lightning --junitxml=$(Build.StagingDirectory)/test-results.xml --durations=50
|
||||
python -m coverage run --source pytorch_lightning -m pytest pytorch_lightning tests -v --junitxml=$(Build.StagingDirectory)/test-results.xml --durations=50
|
||||
displayName: 'Testing: standard'
|
||||
|
||||
- bash: |
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
coverage>5.2.0
|
||||
codecov>=2.1
|
||||
pytest>=6.0
|
||||
pytest-cov>2.10
|
||||
# pytest-xdist
|
||||
#pytest-cov>2.10
|
||||
#pytest-xdist
|
||||
flake8>=3.6
|
||||
check-manifest
|
||||
twine==3.2
|
||||
|
|
|
@ -47,11 +47,6 @@ omit =
|
|||
pytorch_lightning/utilities/xla_device_utils.py
|
||||
pytorch_lightning/utilities/distributed.py
|
||||
pytorch_lightning/tuner/auto_gpu_select.py
|
||||
# TODO: temporary, until accelerator refactor is finished
|
||||
pytorch_lightning/accelerators/accelerator.py
|
||||
pytorch_lightning/plugins/training_type/*.py
|
||||
pytorch_lightning/plugins/precision/*.py
|
||||
pytorch_lightning/plugins/base_plugin.py
|
||||
|
||||
|
||||
[flake8]
|
||||
|
|
|
@ -14,7 +14,7 @@
|
|||
# Running special tests
|
||||
set -e
|
||||
export PL_RUNNING_SPECIAL_TESTS=1
|
||||
DEFAULTS="-m coverage run --source pytorch_lightning -a -m pytest --verbose --capture=no"
|
||||
DEFAULTS="-m coverage run --source pytorch_lightning --append -m pytest --verbose --capture=no"
|
||||
python ${DEFAULTS} tests/trainer/optimization/test_manual_optimization.py::test_step_with_optimizer_closure_with_different_frequencies_ddp
|
||||
python ${DEFAULTS} tests/models/test_sync_batchnorm.py::test_sync_batchnorm_ddp
|
||||
python ${DEFAULTS} tests/plugins/test_deepspeed_plugin.py::test_invalid_deepspeed_defaults_no_precision
|
||||
|
|
Loading…
Reference in New Issue