Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
46 changes: 46 additions & 0 deletions .github/workflows/recce-pr.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
name: Recce PR Review

on:
pull_request:
branches: [main]

env:
# dbt connection (using environment variables for Snowflake)
# Configure these secrets in your repository settings
SNOWFLAKE_ACCOUNT: ${{ secrets.SNOWFLAKE_ACCOUNT }}
SNOWFLAKE_USER: ${{ secrets.SNOWFLAKE_USER }}
SNOWFLAKE_PASSWORD: ${{ secrets.SNOWFLAKE_PASSWORD }}
SNOWFLAKE_ROLE: ${{ secrets.SNOWFLAKE_ROLE }}
SNOWFLAKE_WAREHOUSE: ${{ secrets.SNOWFLAKE_WAREHOUSE }}
SNOWFLAKE_DATABASE: ${{ secrets.SNOWFLAKE_DATABASE }}

jobs:
recce-pr:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.11"

- name: Install uv
uses: astral-sh/setup-uv@v4

- name: Install dependencies
run: uv pip install dbt-core dbt-snowflake --system

- name: Run dbt deps
run: dbt deps

- name: Run dbt build
run: dbt build

- name: Generate dbt docs
run: dbt docs generate

- name: Upload to Recce Cloud
run: uvx recce-cloud upload
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
44 changes: 44 additions & 0 deletions .github/workflows/recce-prod.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: Update Recce Production Baseline

on:
push:
branches: [main]
workflow_dispatch:

env:
# dbt connection (using environment variables for Snowflake)
# Configure these secrets in your repository settings
SNOWFLAKE_ACCOUNT: ${{ secrets.SNOWFLAKE_ACCOUNT }}
SNOWFLAKE_USER: ${{ secrets.SNOWFLAKE_USER }}
SNOWFLAKE_PASSWORD: ${{ secrets.SNOWFLAKE_PASSWORD }}
SNOWFLAKE_ROLE: ${{ secrets.SNOWFLAKE_ROLE }}
SNOWFLAKE_WAREHOUSE: ${{ secrets.SNOWFLAKE_WAREHOUSE }}
SNOWFLAKE_DATABASE: ${{ secrets.SNOWFLAKE_DATABASE }}

jobs:
update-baseline:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.11"

- name: Install uv
uses: astral-sh/setup-uv@v4

- name: Install dependencies
run: uv pip install dbt-core dbt-snowflake --system

- name: Run dbt deps
run: dbt deps

- name: Generate production artifacts
run: dbt docs generate

- name: Upload to Recce Cloud
run: uvx recce-cloud upload --type prod
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Loading