@@ -16,11 +16,15 @@ jobs:
1616 strategy :
1717 fail-fast : false
1818 matrix :
19- os : ["ubuntu-22 .04", "macOS-13", "windows-2022"]
19+ os : ["ubuntu-24 .04", "macOS-13", "windows-2022"]
2020 python-version : ["3.9", "3.12"]
2121 requires : ["latest"]
22+ dependency : ["lightning"]
2223 include :
23- - { os: "ubuntu-20.04", python-version: "3.9", requires: "oldest" }
24+ - { os: "ubuntu-22.04", python-version: "3.9", requires: "oldest", dependency: "lightning" }
25+ - { os: "ubuntu-24.04", python-version: "3.10", requires: "latest", dependency: "pytorch_lightning" }
26+ - { os: "ubuntu-24.04", python-version: "3.12", requires: "latest", dependency: "pytorch_lightning" }
27+ - { os: "macOS-13", python-version: "3.12", requires: "latest", dependency: "pytorch_lightning" }
2428
2529 # Timeout: https://stackoverflow.com/a/59076067/4521646
2630 timeout-minutes : 35
@@ -41,11 +45,23 @@ jobs:
4145 pip install 'lightning-utilities[cli]'
4246 python -m lightning_utilities.cli requirements set-oldest --req_files='["requirements.txt"]'
4347
48+ - name : Adjust requirements
49+ run : |
50+ pip install 'lightning-utilities[cli]' -U -q
51+ python -m lightning_utilities.cli requirements replace-pkg \
52+ --old_package="lightning" \
53+ --new_package="${{matrix.dependency}}" \
54+ --req_files='["_requirements/extra.txt"]'
55+ cat _requirements/extra.txt
56+
4457 - name : Install package & dependencies
4558 run : |
59+ set -e
4660 pip --version
4761 pip install -e '.[test,extra]' -U -q --find-links $TORCH_URL
4862 pip list
63+ # check that right package was installed
64+ python -c "import ${{matrix.dependency}}; print(${{matrix.dependency}}.__version__)"
4965
5066 - name : Tests with mocks
5167 run : |
0 commit comments