diff --git a/.github/workflows/cron.yml b/.github/workflows/cron.yml new file mode 100644 index 00000000..8f3703cd --- /dev/null +++ b/.github/workflows/cron.yml @@ -0,0 +1,10 @@ +name: Scheduled Tests + +on: + schedule: + - cron: '0 14 * * *' # Run daily at 14:00 UTC + +jobs: + tests: + if: github.repository_owner == 'pytest-dev' + uses: ./.github/workflows/tests.yml diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index f32856ca..124bf264 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -5,10 +5,8 @@ on: branches: - master - schedule: - - cron: '0 14 * * *' # Run daily at 14:00 UTC - pull_request: + workflow_call: concurrency: group: ${{ github.workflow }}-${{ github.ref }}