From ae26630d1c0ea73da6128b311bdb5894a9242e26 Mon Sep 17 00:00:00 2001 From: Erin Drummond Date: Sun, 23 Feb 2025 23:28:14 +0000 Subject: [PATCH] Chore: Add workflow to trigger on SQLMesh being updated upstream --- .../on-upstream-commit.workflow.yaml | 36 +++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 .github/workflows/on-upstream-commit.workflow.yaml diff --git a/.github/workflows/on-upstream-commit.workflow.yaml b/.github/workflows/on-upstream-commit.workflow.yaml new file mode 100644 index 0000000..3833c76 --- /dev/null +++ b/.github/workflows/on-upstream-commit.workflow.yaml @@ -0,0 +1,36 @@ +name: On SQLMesh Commit + +on: + workflow_dispatch: + repository_dispatch: + types: ["commit"] + +jobs: + tests: + name: Run Tests + runs-on: ubuntu-latest + timeout-minutes: 30 + permissions: + contents: "read" + concurrency: + group: ${{ github.workflow }}-${{ github.ref_name }}-tests + cancel-in-progress: true + steps: + - name: Checkout + uses: actions/checkout@v4 + - name: Setup Base + uses: ./.github/actions/setup-base + - name: Checkout upstream SQLMesh + uses: actions/checkout@v4 + with: + repository: TobikoData/sqlmesh + ref: ${{ github.event.client_payload.commit_sha }} + path: _sqlmesh_upstream + - name: Install upstream SQLMesh into local env + run: | + cd _sqlmesh_upstream + pip install -e . + - name: Run Unit Tests + run: make test + - name: Run Integration Tests + run: make integration-test