File tree Expand file tree Collapse file tree 7 files changed +7
-12
lines changed Expand file tree Collapse file tree 7 files changed +7
-12
lines changed Original file line number Diff line number Diff line change 68
68
- name : Test Package [only]
69
69
run : |
70
70
# NOTE: run coverage on tests does not propagare faler status for Win, https://github.com/nedbat/coveragepy/issues/1003
71
- python - m pytest pytorch_lightning -v --cov=pytorch_lightning --junitxml=junit/test-results-${{ runner.os }}-${{ matrix.python-version }}-${{ matrix.requires }}.xml
71
+ coverage run --source pytorch_lightning - m pytest pytorch_lightning -v --junitxml=junit/test-results-${{ runner.os }}-${{ matrix.python-version }}-${{ matrix.requires }}.xml
72
72
73
73
- name : Upload pytest test results
74
74
uses : actions/upload-artifact@v2
Original file line number Diff line number Diff line change 44
44
- name : Tests
45
45
run : |
46
46
# NOTE: run coverage on tests does not propagare faler status for Win, https://github.com/nedbat/coveragepy/issues/1003
47
- python - m pytest pytorch_lightning tests --cov=pytorch_lightning -v --durations=50 --junitxml=junit/test-results-${{ runner.os }}-torch${{ matrix.pytorch-version }}.xml
47
+ coverage run --source pytorch_lightning - m pytest pytorch_lightning tests -v --durations=50 --junitxml=junit/test-results-${{ runner.os }}-torch${{ matrix.pytorch-version }}.xml
48
48
shell : bash -l {0}
49
49
50
50
- name : Upload pytest results
Original file line number Diff line number Diff line change @@ -134,7 +134,7 @@ jobs:
134
134
- name : Tests
135
135
run : |
136
136
# NOTE: do not include coverage report here, see: https://github.com/nedbat/coveragepy/issues/1003
137
- 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
137
+ 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
138
138
139
139
- name : Examples
140
140
run : |
Original file line number Diff line number Diff line change 78
78
displayName: 'Get legacy checkpoints'
79
79
80
80
- bash : |
81
- python -m pytest pytorch_lightning tests -v --cov=pytorch_lightning --junitxml=$(Build.StagingDirectory)/test-results.xml --durations=50
81
+ python -m coverage run --source pytorch_lightning -m pytest pytorch_lightning tests -v --junitxml=$(Build.StagingDirectory)/test-results.xml --durations=50
82
82
displayName: 'Testing: standard'
83
83
84
84
- bash : |
Original file line number Diff line number Diff line change 1
1
coverage>5.2.0
2
2
codecov>=2.1
3
3
pytest>=6.0
4
- pytest-cov>2.10
5
- # pytest-xdist
4
+ # pytest-cov>2.10
5
+ #pytest-xdist
6
6
flake8>=3.6
7
7
check-manifest
8
8
twine==3.2
Original file line number Diff line number Diff line change @@ -47,11 +47,6 @@ omit =
47
47
pytorch_lightning/utilities/xla_device_utils.py
48
48
pytorch_lightning/utilities/distributed.py
49
49
pytorch_lightning/tuner/auto_gpu_select.py
50
- # TODO: temporary, until accelerator refactor is finished
51
- pytorch_lightning/accelerators/accelerator.py
52
- pytorch_lightning/plugins/training_type/*.py
53
- pytorch_lightning/plugins/precision/*.py
54
- pytorch_lightning/plugins/base_plugin.py
55
50
56
51
57
52
[flake8]
Original file line number Diff line number Diff line change 14
14
# Running special tests
15
15
set -e
16
16
export PL_RUNNING_SPECIAL_TESTS=1
17
- DEFAULTS=" -m coverage run --source pytorch_lightning -a -m pytest --verbose --capture=no"
17
+ DEFAULTS=" -m coverage run --source pytorch_lightning --append -m pytest --verbose --capture=no"
18
18
python ${DEFAULTS} tests/trainer/optimization/test_manual_optimization.py::test_step_with_optimizer_closure_with_different_frequencies_ddp
19
19
python ${DEFAULTS} tests/models/test_sync_batchnorm.py::test_sync_batchnorm_ddp
20
20
python ${DEFAULTS} tests/plugins/test_deepspeed_plugin.py::test_invalid_deepspeed_defaults_no_precision
You can’t perform that action at this time.
0 commit comments