diff --git a/.github/workflows/recce-ci.yml b/.github/workflows/recce-ci.yml new file mode 100644 index 0000000..1a62086 --- /dev/null +++ b/.github/workflows/recce-ci.yml @@ -0,0 +1,50 @@ +name: Recce CI + +on: + pull_request: + branches: + - main + +jobs: + recce-ci: + name: Recce CI + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4 + + - name: Set up Python + uses: actions/setup-python@v5 + with: + python-version: "3.12" + + - name: Install uv + uses: astral-sh/setup-uv@v4 + + - name: Install dbt + run: uv pip install dbt-core dbt-snowflake --system + + - name: Install Recce + run: uv pip install recce[dbt-snowflake] --system + + - name: Download base artifacts from Recce Cloud + run: recce-cloud download --type base + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + + - name: Prepare dbt + run: | + dbt deps + + - name: Run dbt on PR branch + run: | + dbt run --target pr + dbt docs generate --target pr + + - name: Run Recce + run: recce run + + - name: Upload to Recce Cloud + run: recce-cloud upload + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/recce-prod.yml b/.github/workflows/recce-prod.yml new file mode 100644 index 0000000..80c8ddf --- /dev/null +++ b/.github/workflows/recce-prod.yml @@ -0,0 +1,40 @@ +name: Recce Production Baseline + +on: + push: + branches: + - main + workflow_dispatch: + +jobs: + recce-prod: + name: Update Recce Production Baseline + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4 + + - name: Set up Python + uses: actions/setup-python@v5 + with: + python-version: "3.12" + + - name: Install uv + uses: astral-sh/setup-uv@v4 + + - name: Install dbt + run: uv pip install dbt-core dbt-snowflake --system + + - name: Prepare dbt + run: | + dbt deps + + - name: Generate production artifacts + run: | + dbt run --target prod + dbt docs generate --target prod + + - name: Upload to Recce Cloud + run: uvx recce-cloud upload --type base + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.recce/config b/.recce/config new file mode 100644 index 0000000..9abacd4 --- /dev/null +++ b/.recce/config @@ -0,0 +1,6 @@ +version: 1 +cloud: + org_id: '11' + project_id: '34' + bound_at: '2026-02-02T04:13:18.908834+00:00' + bound_by: evenwei@infuseai.io