File tree Expand file tree Collapse file tree 4 files changed +25
-96
lines changed Expand file tree Collapse file tree 4 files changed +25
-96
lines changed Original file line number Diff line number Diff line change 23
23
24
24
## Documentation
25
25
26
- | workflow file | action |
27
- | ---------------------------------- | -------------------------------------------------------------------------------------------- |
28
- | .github/workflows/ci_test-base.yml | Validate code examples in docstrings in the package with pytest’s doctest. |
29
- | .github/workflows/docs-checks.yml | Run doctest, build documentation, and upload built docs to make them available as artifacts. |
30
- | .circleci/config.yml (build-docs) | Build docs and host them on output.circleci-artifacts.com for easy access to the built docs. |
31
- | .github/workflows/docs-link.yml | Provide a direct link to built docs on output.circleci-artifacts.com. |
26
+ | workflow file | action |
27
+ | --------------------------------- | -------------------------------------------------------------------------------------------- |
28
+ | .github/workflows/docs-checks.yml | Run doctest, build documentation, and upload built docs to make them available as artifacts. |
29
+ | .circleci/config.yml (build-docs) | Build docs and host them on output.circleci-artifacts.com for easy access to the built docs. |
30
+ | .github/workflows/docs-link.yml | Provide a direct link to built docs on output.circleci-artifacts.com. |
32
31
33
32
## Code Quality
34
33
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -35,15 +35,23 @@ jobs:
35
35
36
36
- uses : actions/checkout@v2
37
37
38
- - name : Update dependencies
38
+ - name : Update base dependencies
39
+ run : |
40
+ conda info
41
+ conda list
42
+ pip install -r requirements/test.txt
43
+
44
+ - name : DocTests
45
+ run : |
46
+ coverage run --source pytorch_lightning -m pytest pytorch_lightning
47
+
48
+ - name : Update all dependencies
39
49
env :
40
50
HOROVOD_BUILD_ARCH_FLAGS : " -mfma"
41
51
HOROVOD_WITHOUT_MXNET : 1
42
52
HOROVOD_WITHOUT_TENSORFLOW : 1
43
53
run : |
44
54
set -e
45
- conda info
46
- conda list
47
55
# adjust versions according installed Torch version
48
56
python ./requirements/adjust-versions.py requirements/extra.txt
49
57
python ./requirements/adjust-versions.py requirements/examples.txt
58
66
- name : Pull legacy checkpoints
59
67
run : bash .actions/pull_legacy_checkpoints.sh
60
68
61
- - name : Tests
69
+ - name : UnitTests
62
70
run : |
63
- 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
71
+ coverage run --source pytorch_lightning -m pytest --timeout 150 tests -v --durations=50 --junitxml=junit/test-results-${{ runner.os }}-torch${{ matrix.pytorch-version }}.xml
64
72
65
73
- name : Upload pytest results
66
74
uses : actions/upload-artifact@v2
Original file line number Diff line number Diff line change @@ -84,13 +84,13 @@ jobs:
84
84
flag=$(python -c "print('--pre' if '${{matrix.release}}' == 'pre' else '')" 2>&1)
85
85
url=$(python -c "print('test/cpu/torch_test.html' if '${{matrix.release}}' == 'pre' else 'cpu/torch_stable.html')" 2>&1)
86
86
pip install -r requirements.txt --upgrade $flag --find-links "https://download.pytorch.org/whl/${url}"
87
- # adjust versions according installed Torch version
88
- python ./requirements/adjust-versions.py requirements/examples.txt
89
- pip install -r requirements/examples.txt --find-links https://download.pytorch.org/whl/cpu/torch_stable.html --upgrade
90
87
pip install -r requirements/test.txt --upgrade
91
88
pip list
92
89
shell : bash
93
90
91
+ - name : DocTests
92
+ run : coverage run --source pytorch_lightning -m pytest pytorch_lightning
93
+
94
94
- name : Install extra dependencies
95
95
run : |
96
96
# adjust versions according installed Torch version
@@ -126,13 +126,16 @@ jobs:
126
126
run : |
127
127
python requirements/check-avail-extras.py
128
128
129
- - name : Tests
129
+ - name : UnitTests
130
130
run : |
131
131
# NOTE: do not include coverage report here, see: https://github.com/nedbat/coveragepy/issues/1003
132
132
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
133
133
134
134
- name : Examples
135
135
run : |
136
+ # adjust versions according installed Torch version
137
+ python ./requirements/adjust-versions.py requirements/examples.txt
138
+ pip install -r requirements/examples.txt --find-links https://download.pytorch.org/whl/cpu/torch_stable.html --upgrade
136
139
python -m pytest pl_examples -v --durations=10
137
140
138
141
- name : Upload pytest results
You can’t perform that action at this time.
0 commit comments