|
53 | 53 | - { os: "macOS-14", pkg-name: "lightning", python-version: "3.10", pytorch-version: "2.3" } |
54 | 54 | - { os: "ubuntu-20.04", pkg-name: "lightning", python-version: "3.10", pytorch-version: "2.3" } |
55 | 55 | - { os: "windows-2022", pkg-name: "lightning", python-version: "3.10", pytorch-version: "2.3" } |
| 56 | + - { os: "macOS-14", pkg-name: "lightning", python-version: "3.11", pytorch-version: "2.4" } |
| 57 | + - { os: "ubuntu-20.04", pkg-name: "lightning", python-version: "3.11", pytorch-version: "2.4" } |
| 58 | + - { os: "windows-2022", pkg-name: "lightning", python-version: "3.11", pytorch-version: "2.4" } |
56 | 59 | # only run PyTorch latest with Python latest, use PyTorch scope to limit dependency issues |
57 | 60 | - { os: "macOS-12", pkg-name: "pytorch", python-version: "3.11", pytorch-version: "2.1" } |
58 | 61 | - { os: "ubuntu-22.04", pkg-name: "pytorch", python-version: "3.11", pytorch-version: "2.1" } |
|
82 | 85 | PACKAGE_NAME: ${{ matrix.pkg-name }} |
83 | 86 | TORCH_URL: "https://download.pytorch.org/whl/cpu/torch_stable.html" |
84 | 87 | TORCH_URL_STABLE: "https://download.pytorch.org/whl/cpu/torch_stable.html" |
85 | | - TORCH_URL_TEST: "https://download.pytorch.org/whl/test/cpu/torch_test.html" |
| 88 | + TORCH_URL_TEST: "https://download.pytorch.org/whl/test/cpu/torch" |
86 | 89 | FREEZE_REQUIREMENTS: ${{ ! (github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/heads/release/')) }} |
87 | 90 | PYPI_CACHE_DIR: "_pip-wheels" |
88 | 91 | # TODO: Remove this - Enable running MPS tests on this platform |
@@ -124,11 +127,13 @@ jobs: |
124 | 127 | - name: Env. variables |
125 | 128 | run: | |
126 | 129 | # Switch PyTorch URL |
127 | | - python -c "print('TORCH_URL=' + str('${{env.TORCH_URL_TEST}}' if '${{ matrix.pytorch-version }}' == '2.3' else '${{env.TORCH_URL_STABLE}}'))" >> $GITHUB_ENV |
| 130 | + python -c "print('TORCH_URL=' + str('${{env.TORCH_URL_TEST}}' if '${{ matrix.pytorch-version }}' == '2.4' else '${{env.TORCH_URL_STABLE}}'))" >> $GITHUB_ENV |
128 | 131 | # Switch coverage scope |
129 | 132 | python -c "print('COVERAGE_SCOPE=' + str('lightning' if '${{matrix.pkg-name}}' == 'lightning' else 'pytorch_lightning'))" >> $GITHUB_ENV |
130 | 133 | # if you install mono-package set dependency only for this subpackage |
131 | 134 | python -c "print('EXTRA_PREFIX=' + str('' if '${{matrix.pkg-name}}' != 'lightning' else 'pytorch-'))" >> $GITHUB_ENV |
| 135 | + # Avoid issue on Windows with PyTorch 2.4: "RuntimeError: use_libuv was requested but PyTorch was build without libuv support" |
| 136 | + python -c "print('USE_LIBUV=0' if '${{matrix.os}}' == 'windows-2022' and '${{matrix.pytorch-version}}' == '2.4' else '')" >> $GITHUB_ENV |
132 | 137 |
|
133 | 138 | - name: Install package & dependencies |
134 | 139 | timeout-minutes: 20 |
|
0 commit comments