From b8ba3848511ed412a13cc283882948c0bb0290e2 Mon Sep 17 00:00:00 2001 From: Aditya Goel Date: Fri, 3 Jan 2025 18:27:21 +0000 Subject: [PATCH] Run CI on forks --- .github/workflows/array-api.yml | 11 ++++++++++- .github/workflows/ci.yml | 12 +++++++++++- 2 files changed, 21 insertions(+), 2 deletions(-) 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 }}