File tree Expand file tree Collapse file tree 4 files changed +7
-3
lines changed
Expand file tree Collapse file tree 4 files changed +7
-3
lines changed Original file line number Diff line number Diff line change 3939 - pip install -r ./requirements/examples.txt --user -q
4040 - pip list
4141 - python -c "import torch ; print(' & '.join([torch.cuda.get_device_name(i) for i in range(torch.cuda.device_count())]) if torch.cuda.is_available() else 'only CPU')"
42- - coverage run --source=pytorch_lightning --concurrency=multiprocessing - m py.test pytorch_lightning tests -v --durations=25 # --flake8
42+ - coverage run -m py.test pytorch_lightning tests -v --durations=25 # --flake8
4343 - python -m py.test benchmarks pl_examples -v --maxfail=2 --durations=0 # --flake8
4444 # - cd docs; make doctest; make coverage
4545 - coverage report
Original file line number Diff line number Diff line change @@ -121,7 +121,7 @@ jobs:
121121 - name : Tests
122122 run : |
123123 # NOTE: do not include coverage report here, see: https://github.com/nedbat/coveragepy/issues/1003
124- coverage run --source=pytorch_lightning --concurrency=multiprocessing - m pytest pytorch_lightning tests -v --junitxml=junit/test-results-${{ runner.os }}-${{ matrix.python-version }}-${{ matrix.requires }}.xml
124+ coverage run -m pytest pytorch_lightning tests -v --junitxml=junit/test-results-${{ runner.os }}-${{ matrix.python-version }}-${{ matrix.requires }}.xml
125125
126126 - name : Upload pytest test results
127127 uses : actions/upload-artifact@master
Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ local tputests = base.BaseTest {
2121 command: utils.scriptCommand(
2222 |||
2323 cd pytorch-lightning
24- coverage run --source=pytorch_lightning --concurrency=multiprocessing - m pytest tests/models/test_tpu.py -v
24+ coverage run -m pytest tests/models/test_tpu.py -v
2525 test_exit_code=$?
2626 echo "\n||| END PYTEST LOGS |||\n"
2727 coverage xml
Original file line number Diff line number Diff line change @@ -16,6 +16,10 @@ markers =
1616 gpus_param_tests
1717junit_duration_report = call
1818
19+ [coverage:run]
20+ concurrency =multiprocessing
21+ source =pytorch_lightning
22+
1923[coverage:report]
2024exclude_lines =
2125 pragma: no-cover
You can’t perform that action at this time.
0 commit comments