diff --git a/.github/workflows/array-api.yml b/.github/workflows/array-api.yml index 8354195..0ea8b76 100644 --- a/.github/workflows/array-api.yml +++ b/.github/workflows/array-api.yml @@ -1,7 +1,16 @@ name: Array API coverage tests on: - push: # Run on all branches + # We would like to trigger for CI for any pull request action - + # both from QuantCo's branches as well as forks. + pull_request: + # In addition to pull requests, we want to run CI for pushes + # to the main branch and tags. + push: + branches: + - "main" + tags: + - "*" schedule: - cron: "0 8 * * 0" # Runs weekly at 08:00 UTC on Sunday diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 883b492..0af01d6 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,5 +1,15 @@ name: CI -on: [push] +on: + # We would like to trigger for CI for any pull request action - + # both from QuantCo's branches as well as forks. + pull_request: + # In addition to pull requests, we want to run CI for pushes + # to the main branch and tags. + push: + branches: + - "main" + tags: + - "*" concurrency: group: ${{ github.workflow }}-${{ github.ref }}