Skip to content

Commit 2d901ce

Browse files
Configure cron schedule for CI
1 parent b2fa6b6 commit 2d901ce

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

.github/workflows/ci.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ on:
1313
- "docs/**"
1414
- "**/*.md"
1515
- "mkdocs.yml"
16+
schedule:
17+
- cron: "0 0 * * *"
1618
concurrency:
1719
group: ${{ github.workflow }}-${{ github.ref }}
1820
cancel-in-progress: true
@@ -67,7 +69,7 @@ jobs:
6769
6870
- name: Run pytest
6971
uses: pavelzw/pytest-action@510c5e90c360a185039bea56ce8b3e7e51a16507 # v2.2.0
70-
if: ${{ matrix.pytest == null || matrix.pytest == 'true' }}
72+
if: ${{ (matrix.pytest == null || matrix.pytest == 'true') && (github.event_name == 'schedule' || matrix.dependencies != 'max') }}
7173
with:
7274
custom-pytest: uv run --frozen pytest
7375
custom-arguments: --cov --cov-report=xml --junitxml=junit.xml -o junit_family=legacy
@@ -114,7 +116,7 @@ jobs:
114116
python_version: "3.10"
115117
uv_version: "0.6.8"
116118
pre_commit: "false"
117-
- dependencies: "max"
119+
- dependencies: "max" # Cron only (Pytest skipped)
118120
python_version: "3.14"
119121
pre_commit: "false"
120122
- codecov: "true"

0 commit comments

Comments
 (0)