@@ -20,7 +20,7 @@ permissions:
20
20
21
21
concurrency :
22
22
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') }}
24
24
25
25
defaults :
26
26
run :
79
79
matrix :
80
80
os : ["ubuntu-22.04"]
81
81
python-version : ["3.9", "3.10", "3.11", "3.12", "3.13"]
82
+ requires : ["latest"]
82
83
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" }
85
87
timeout-minutes : 35
86
88
steps :
87
89
- name : Checkout generic
95
97
- uses : actions/setup-python@v5
96
98
with :
97
99
python-version : ${{ matrix.python-version }}
98
- cache : " pip"
99
100
cache-dependency-path : pyproject.toml
101
+ cache : " pip"
100
102
101
103
# Add caching for HF models and tokenizers
102
104
- name : HF cache
@@ -110,6 +112,11 @@ jobs:
110
112
hf-cache_${{ runner.os }}-
111
113
hf-cache_
112
114
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
113
120
- name : Install dependencies
114
121
run : |
115
122
pip install '.[extra,compiler,test]' -U
0 commit comments