@@ -49,13 +49,17 @@ jobs:
49
49
- { os: "ubuntu-20.04", pkg-name: "lightning", python-version: "3.10", pytorch-version: "1.13" }
50
50
- { os: "windows-2022", pkg-name: "lightning", python-version: "3.9", pytorch-version: "1.12" }
51
51
- { os: "windows-2022", pkg-name: "lightning", python-version: "3.10", pytorch-version: "1.13" }
52
- # only run PyTorch latest with Python recent
52
+ # only run PyTorch latest
53
53
- { os: "macOS-11", pkg-name: "lightning", python-version: "3.10", pytorch-version: "2.0" }
54
54
- { os: "ubuntu-20.04", pkg-name: "lightning", python-version: "3.10", pytorch-version: "2.0" }
55
55
- { os: "windows-2022", pkg-name: "lightning", python-version: "3.10", pytorch-version: "2.0" }
56
56
- { os: "macOS-11", pkg-name: "lightning", python-version: "3.10", pytorch-version: "2.1" }
57
57
- { os: "ubuntu-20.04", pkg-name: "lightning", python-version: "3.10", pytorch-version: "2.1" }
58
58
- { os: "windows-2022", pkg-name: "lightning", python-version: "3.10", pytorch-version: "2.1" }
59
+ # only run PyTorch future
60
+ - { os: "macOS-12", pkg-name: "lightning", python-version: "3.10", pytorch-version: "2.2" }
61
+ - { os: "ubuntu-22.04", pkg-name: "lightning", python-version: "3.10", pytorch-version: "2.2" }
62
+ - { os: "windows-2022", pkg-name: "lightning", python-version: "3.10", pytorch-version: "2.2" }
59
63
# only run PyTorch latest with Python latest, use PyTorch scope to limit dependency issues
60
64
- { os: "macOS-12", pkg-name: "pytorch", python-version: "3.11", pytorch-version: "2.0" }
61
65
- { os: "ubuntu-22.04", pkg-name: "pytorch", python-version: "3.11", pytorch-version: "2.0" }
@@ -134,7 +138,7 @@ jobs:
134
138
- name : Env. variables
135
139
run : |
136
140
# Switch PyTorch URL
137
- # python -c "print('TORCH_URL=' + str('${{env.TORCH_URL_TEST}}' if '${{ matrix.release }}' == 'pre ' else '${{env.TORCH_URL_STABLE}}'))" >> $GITHUB_ENV
141
+ python -c "print('TORCH_URL=' + str('${{env.TORCH_URL_TEST}}' if '${{ matrix.pytorch-version }}' == '2.2 ' else '${{env.TORCH_URL_STABLE}}'))" >> $GITHUB_ENV
138
142
# Switch coverage scope
139
143
python -c "print('COVERAGE_SCOPE=' + str('lightning' if '${{matrix.pkg-name}}' == 'lightning' else 'pytorch_lightning'))" >> $GITHUB_ENV
140
144
# if you install mono-package set dependency only for this subpackage
@@ -194,7 +198,7 @@ jobs:
194
198
195
199
- name : Testing Warnings
196
200
working-directory : tests/tests_pytorch
197
- # needs to run outside of `pytest`
201
+ # needs to run outside `pytest`
198
202
run : python utilities/test_warnings.py
199
203
200
204
- name : Testing PyTorch
0 commit comments