Skip to content

Commit 64348bd

Browse files
committed
ci: only test macOS/Windows on schedule and manual dispatch
1 parent b3ed6af commit 64348bd

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

.github/workflows/unittest.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@ name: UnitTest
22

33
on:
44
workflow_dispatch:
5+
schedule:
6+
- cron: '0 3 * * 1'
57
pull_request:
68
paths:
79
- '**.py'
@@ -15,7 +17,7 @@ jobs:
1517
strategy:
1618
fail-fast: false
1719
matrix:
18-
os: [ubuntu-latest, macos-latest, windows-latest]
20+
os: ${{ github.event_name == 'pull_request' && fromJSON('["ubuntu-latest"]') || fromJSON('["ubuntu-latest", "macos-latest", "windows-latest"]') }}
1921
python-version: ['3.9']
2022
steps:
2123
- uses: actions/checkout@v4

0 commit comments

Comments
 (0)