@@ -20,7 +20,7 @@ permissions:
2020
2121concurrency :
2222 group : ${{ github.workflow }}-${{ github.ref }}-${{ github.head_ref }}
23- cancel-in-progress : ${{ github.event_name == 'pull_request_target' }}
23+ cancel-in-progress : ${{ startsWith( github.event_name, 'pull_request') }}
2424
2525defaults :
2626 run :
7979 matrix :
8080 os : ["ubuntu-22.04"]
8181 python-version : ["3.9", "3.10", "3.11", "3.12", "3.13"]
82+ requires : ["latest"]
8283 include :
83- - { os: "macOS-14", python-version: "3.10" }
84- - { os: "windows-2022", python-version: "3.10" }
84+ - { os: "ubuntu-22.04", python-version: "3.9", requires: "oldest" }
85+ - { os: "windows-2022", python-version: "3.10", requires: "latest" }
86+ - { os: "macOS-14", python-version: "3.10", requires: "latest" }
8587 timeout-minutes : 35
8688 steps :
8789 - name : Checkout generic
9597 - uses : actions/setup-python@v5
9698 with :
9799 python-version : ${{ matrix.python-version }}
98- cache : " pip"
99100 cache-dependency-path : pyproject.toml
101+ cache : " pip"
100102
101103 # Add caching for HF models and tokenizers
102104 - name : HF cache
@@ -110,6 +112,11 @@ jobs:
110112 hf-cache_${{ runner.os }}-
111113 hf-cache_
112114
115+ - name : Set min. dependencies
116+ if : matrix.requires == 'oldest'
117+ run : |
118+ pip install 'lightning-utilities[cli]>=0.15.1'
119+ python -m lightning_utilities.cli requirements set-oldest --req_files=pyproject.toml
113120 - name : Install dependencies
114121 run : |
115122 pip install '.[extra,compiler,test]' -U
0 commit comments