Skip to content

Commit 7292be3

Browse files
committed
test: improved caching
1 parent 2e445cf commit 7292be3

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

.github/workflows/test.yaml

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ on:
1111
branches:
1212
- master
1313
schedule:
14-
- cron: "0 5 * * *"
14+
- cron: "0 1 * * *"
1515

1616
# Cancel any in-progress runs when a new run is triggered
1717
concurrency:
@@ -41,11 +41,9 @@ jobs:
4141
strategy:
4242
fail-fast: false
4343
matrix:
44-
python-version: ${{ fromJSON(needs.build.outputs.python-versions) }}
45-
os:
46-
- ubuntu-latest
47-
- macos-latest
48-
- windows-latest
44+
# Only run ubuntu/3.12 on scheduled runs
45+
python-version: ${{ fromJSON(github.event_name == 'schedule' && '["3.12"]' || needs.build.outputs.python-versions) }}
46+
os: ${{ fromJSON(github.event_name == 'schedule' && '["ubuntu-latest"]' || '["ubuntu-latest","macos-latest","windows-latest"]') }}
4947
env:
5048
MPLBACKEND: Agg # https://github.com/orgs/community/discussions/26434
5149

0 commit comments

Comments
 (0)