Skip to content

Commit 07ffed3

Browse files
committed
--concurrency
1 parent 5b41068 commit 07ffed3

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

.drone.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ steps:
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 -m py.test pytorch_lightning tests -v --durations=25 # --flake8
42+
- coverage run --source=pytorch_lightning --concurrency=multiprocessing -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

.github/workflows/ci-testing.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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 -m pytest pytorch_lightning tests -v --junitxml=junit/test-results-${{ runner.os }}-${{ matrix.python-version }}-${{ matrix.requires }}.xml
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
125125
126126
- name: Upload pytest test results
127127
uses: actions/upload-artifact@master

dockers/tpu-tests/tpu_test_cases.jsonnet

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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 -m pytest tests/models/test_tpu.py -v
24+
coverage run --source=pytorch_lightning --concurrency=multiprocessing -m pytest tests/models/test_tpu.py -v
2525
test_exit_code=$?
2626
echo "\n||| END PYTEST LOGS |||\n"
2727
coverage xml

0 commit comments

Comments
 (0)