Skip to content

Commit d0bc12c

Browse files
committed
Chore: Add workflow to trigger on SQLMesh being updated upstream
1 parent 8dc4f34 commit d0bc12c

File tree

1 file changed

+44
-0
lines changed

1 file changed

+44
-0
lines changed
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
name: On SQLMesh Commit
2+
3+
on:
4+
# For local testing
5+
workflow_dispatch:
6+
inputs:
7+
commit_sha:
8+
description: Commit SHA or branch from SQLMesh repo
9+
default: 'main'
10+
required: true
11+
12+
# To be triggered from CircleCI via the GitHub API
13+
repository_dispatch:
14+
types: ["commit"]
15+
16+
jobs:
17+
tests:
18+
name: Run Tests
19+
runs-on: ubuntu-latest
20+
timeout-minutes: 30
21+
permissions:
22+
contents: "read"
23+
concurrency:
24+
group: ${{ github.workflow }}-${{ github.ref_name }}-tests
25+
cancel-in-progress: true
26+
steps:
27+
- name: Checkout
28+
uses: actions/checkout@v4
29+
- name: Setup Base
30+
uses: ./.github/actions/setup-base
31+
- name: Checkout upstream SQLMesh
32+
uses: actions/checkout@v4
33+
with:
34+
repository: TobikoData/sqlmesh
35+
ref: ${{ github.event.client_payload.commit_sha || inputs.commit_sha || 'main' }}
36+
path: _sqlmesh_upstream
37+
- name: Install upstream SQLMesh into local env
38+
run: |
39+
cd _sqlmesh_upstream
40+
pip install -e .
41+
- name: Run Unit Tests
42+
run: make test
43+
- name: Run Integration Tests
44+
run: make integration-test

0 commit comments

Comments
 (0)