diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 4a1957d4c9..1929843241 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -23,6 +23,8 @@ env: jobs: test: name: Test (${{ matrix.os }}, Python ${{ matrix.python-version }}, ${{ matrix.uv-resolution }}, ${{ matrix.database || 'sqlite' }}) + # Run scheduled jobs only on the main repository (disable cron on forks) + if: ${{ github.repository_owner == 'fastapi' || github.event_name != 'schedule' }} strategy: matrix: os: [ ubuntu-latest, windows-latest, macos-latest ]