Skip to content

Commit

Permalink
Run CI for forks (#91)
Browse files Browse the repository at this point in the history
  • Loading branch information
adityagoel4512 authored Jan 3, 2025
1 parent 9621586 commit 1a707d1
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 4 deletions.
12 changes: 10 additions & 2 deletions .github/workflows/array-api.yml
Original file line number Diff line number Diff line change
@@ -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

Expand All @@ -20,7 +29,6 @@ jobs:
- name: Checkout branch
uses: actions/checkout@v4
with:
ref: ${{ github.head_ref }}
fetch-depth: 0
submodules: recursive
- name: Set up pixi
Expand Down
13 changes: 11 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -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 }}
Expand Down Expand Up @@ -40,7 +50,6 @@ jobs:
- name: Checkout branch
uses: actions/checkout@v4
with:
ref: ${{ github.head_ref }}
fetch-depth: 0
- name: Set up pixi
uses: prefix-dev/setup-pixi@ba3bb36eb2066252b2363392b7739741bb777659
Expand Down

0 comments on commit 1a707d1

Please sign in to comment.