Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .azure-pipelines/gpu-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,8 @@ jobs:

- bash: |
python -m coverage run --source pytorch_lightning -m pytest pytorch_lightning tests --ignore tests/benchmarks -v --junitxml=$(Build.StagingDirectory)/test-results.xml --durations=50
env:
PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION: "python"
displayName: 'Testing: standard'

- bash: |
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/ci_pkg-install.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,8 @@ jobs:
pip install -r requirements.txt --find-links https://download.pytorch.org/whl/cpu/torch_stable.html

- name: Install | Uninstall package - archive
env:
PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION: "python"
run: |
# install as archive
pip install dist/*.tar.gz
Expand All @@ -57,6 +59,8 @@ jobs:
pip uninstall -y pytorch-lightning

- name: Install | Uninstall package - wheel
env:
PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION: "python"
run: |
# install as wheel
pip install dist/*.whl
Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/ci_test-base.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,9 @@ jobs:
shell: bash

- name: Test Package [only]
run: |
coverage run --source pytorch_lightning -m pytest pytorch_lightning -v
env:
PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION: "python"
run: coverage run --source pytorch_lightning -m pytest pytorch_lightning -v

- name: Statistics
if: success()
Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/ci_test-conda.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,9 @@ jobs:
ls -l checkpoints/

- name: Tests
run: |
coverage run --source pytorch_lightning -m pytest --timeout 150 pytorch_lightning tests -v --durations=50 --junitxml=junit/test-results-${{ runner.os }}-torch${{ matrix.pytorch-version }}.xml
env:
PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION: "python"
run: coverage run --source pytorch_lightning -m pytest --timeout 150 pytorch_lightning tests -v --durations=50 --junitxml=junit/test-results-${{ runner.os }}-torch${{ matrix.pytorch-version }}.xml

- name: Upload pytest results
uses: actions/upload-artifact@v2
Expand Down
12 changes: 7 additions & 5 deletions .github/workflows/ci_test-full.yml
Original file line number Diff line number Diff line change
Expand Up @@ -133,13 +133,15 @@ jobs:
python requirements/check-avail-extras.py

- name: Tests
run: |
# NOTE: do not include coverage report here, see: https://github.com/nedbat/coveragepy/issues/1003
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 }}-${{ matrix.release }}.xml
env:
PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION: "python"
# NOTE: do not include coverage report here, see: https://github.com/nedbat/coveragepy/issues/1003
run: 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 }}-${{ matrix.release }}.xml

- name: Examples
run: |
python -m pytest pl_examples -v --durations=10
env:
PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION: "python"
run: python -m pytest pl_examples -v --durations=10

- name: Upload pytest results
uses: actions/upload-artifact@v2
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/ci_test-slow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,10 +55,10 @@ jobs:
shell: bash

- name: Tests
run: |
coverage run --source pytorch_lightning -m pytest tests -v --junitxml=junit/test-results-${{ runner.os }}-py${{ matrix.python-version }}.xml
env:
PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION: "python"
PL_RUN_SLOW_TESTS: 1
run: coverage run --source pytorch_lightning -m pytest tests -v --junitxml=junit/test-results-${{ runner.os }}-py${{ matrix.python-version }}.xml

- name: Upload pytest test results
uses: actions/upload-artifact@v2
Expand Down