Skip to content

Commit 951272a

Browse files
ci: update cron schedule and add include for oldest dependencies (#112)
--------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
1 parent c4fb15b commit 951272a

File tree

2 files changed

+16
-5
lines changed

2 files changed

+16
-5
lines changed

.github/workflows/ci-cloud.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ on:
55
push:
66
workflow_dispatch:
77
schedule:
8-
- cron: "0 0 * * *"
8+
- cron: "0 0 * * *" # every day at midnight UTC
99

1010
defaults:
1111
run:
@@ -39,6 +39,9 @@ jobs:
3939
matrix:
4040
os: ["ubuntu-22.04", "macOS-13", "windows-2022"]
4141
python-version: ["3.10"]
42+
requires: ["latest"]
43+
include:
44+
- { os: "ubuntu-22.04", python-version: "3.9", requires: "oldest" }
4245

4346
# Timeout: https://stackoverflow.com/a/59076067/4521646
4447
timeout-minutes: 25
@@ -52,6 +55,12 @@ jobs:
5255
python-version: ${{ matrix.python-version }}
5356
cache: "pip"
5457

58+
- name: Set min. dependencies
59+
if: matrix.requires == 'oldest'
60+
run: |
61+
pip install 'lightning-utilities[cli]'
62+
python -m lightning_utilities.cli requirements set-oldest --req_files='["requirements.txt"]'
63+
5564
- name: Install package & dependencies
5665
run: |
5766
pip --version

.github/workflows/ci-testing.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ on: # Trigger the workflow on push or pull request, but only for the main branch
55
push: {}
66
pull_request:
77
branches: [main]
8+
schedule:
9+
- cron: "0 0 * * *" # every day at midnight UTC
810

911
defaults:
1012
run:
@@ -21,10 +23,10 @@ jobs:
2123
requires: ["latest"]
2224
dependency: ["lightning"]
2325
include:
24-
- { requires: "oldest", dependency: "lightning", os: "ubuntu-22.04", python-version: "3.9" }
25-
- { requires: "latest", dependency: "pytorch_lightning", os: "ubuntu-24.04", python-version: "3.12" }
26-
- { requires: "latest", dependency: "pytorch_lightning", os: "windows-2022", python-version: "3.12" }
27-
- { requires: "latest", dependency: "pytorch_lightning", os: "macOS-13", python-version: "3.12" }
26+
- { os: "ubuntu-22.04", python-version: "3.9", requires: "oldest", dependency: "lightning" }
27+
- { os: "ubuntu-24.04", python-version: "3.12", requires: "latest", dependency: "pytorch_lightning" }
28+
- { os: "windows-2022", python-version: "3.12", requires: "latest", dependency: "pytorch_lightning" }
29+
- { os: "macOS-13", python-version: "3.12", requires: "latest", dependency: "pytorch_lightning" }
2830

2931
# Timeout: https://stackoverflow.com/a/59076067/4521646
3032
timeout-minutes: 35

0 commit comments

Comments
 (0)